feat(aa): add a string method to all rule struct.

This commit is contained in:
Alexandre Pujol 2024-04-23 21:26:09 +01:00
parent e9fa0660f8
commit 5483668574
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
20 changed files with 337 additions and 34 deletions

View file

@ -4,6 +4,8 @@
package aa
const tokPIVOTROOT = "pivot_root"
type PivotRoot struct {
RuleBase
Qualifier
@ -42,3 +44,7 @@ func (r *PivotRoot) Equals(other any) bool {
r.TargetProfile == o.TargetProfile &&
r.Qualifier.Equals(o.Qualifier)
}
func (r *PivotRoot) String() string {
return renderTemplate(tokPIVOTROOT, r)
}