feat(aa): add initial profile validation structure.
This commit is contained in:
parent
2dd6046697
commit
92641e7e28
20 changed files with 222 additions and 2 deletions
|
|
@ -35,6 +35,13 @@ func newRlimitFromLog(log map[string]string) Rule {
|
|||
}
|
||||
}
|
||||
|
||||
func (r *Rlimit) Validate() error {
|
||||
if err := validateValues(r.Kind(), "keys", []string{r.Key}); err != nil {
|
||||
return fmt.Errorf("%s: %w", r, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rlimit) Less(other any) bool {
|
||||
o, _ := other.(*Rlimit)
|
||||
if r.Key != o.Key {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue