feat(aa): add a string method to all rule struct.
This commit is contained in:
parent
e9fa0660f8
commit
5483668574
20 changed files with 337 additions and 34 deletions
|
|
@ -8,6 +8,9 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
const tokMQUEUE = "mqueue"
|
||||
|
||||
|
||||
type Mqueue struct {
|
||||
RuleBase
|
||||
Qualifier
|
||||
|
|
@ -53,3 +56,7 @@ func (r *Mqueue) Equals(other any) bool {
|
|||
return slices.Equal(r.Access, o.Access) && r.Type == o.Type && r.Label == o.Label &&
|
||||
r.Name == o.Name && r.Qualifier.Equals(o.Qualifier)
|
||||
}
|
||||
|
||||
func (r *Mqueue) String() string {
|
||||
return renderTemplate(tokMQUEUE, r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue