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

@ -51,6 +51,18 @@ func newRlimitFromLog(log map[string]string) Rule {
}
}
func (r *Rlimit) Kind() Kind {
return RLIMIT
}
func (r *Rlimit) Constraint() constraint {
return blockKind
}
func (r *Rlimit) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *Rlimit) Validate() error {
if err := validateValues(r.Kind(), "keys", []string{r.Key}); err != nil {
return fmt.Errorf("%s: %w", r, err)
@ -68,15 +80,3 @@ func (r *Rlimit) Compare(other Rule) int {
}
return compare(r.Value, o.Value)
}
func (r *Rlimit) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *Rlimit) Constraint() constraint {
return blockKind
}
func (r *Rlimit) Kind() Kind {
return RLIMIT
}