refractor(aa): ensure methods order in rules definitions.

This commit is contained in:
Alexandre Pujol 2024-06-25 19:56:36 +01:00
parent 272072d2a5
commit 880f0ef37e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 310 additions and 310 deletions

View file

@ -42,6 +42,18 @@ func newUsernsFromLog(log map[string]string) Rule {
}
}
func (r *Userns) Kind() Kind {
return USERNS
}
func (r *Userns) Constraint() constraint {
return blockKind
}
func (r *Userns) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *Userns) Validate() error {
return nil
}
@ -59,15 +71,3 @@ func (r *Userns) Merge(other Rule) bool {
b := &r.Base
return b.merge(o.Base)
}
func (r *Userns) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *Userns) Constraint() constraint {
return blockKind
}
func (r *Userns) Kind() Kind {
return USERNS
}