feat(aa): add implementation of the new rule methods.
This commit is contained in:
parent
8b24f3521d
commit
0e0f87611a
19 changed files with 380 additions and 2 deletions
|
|
@ -84,3 +84,18 @@ func (r *Rlimit) Compare(other Rule) int {
|
|||
func (r *Rlimit) Merge(other Rule) bool {
|
||||
return false // Never merge rlimit
|
||||
}
|
||||
|
||||
func (r *Rlimit) Lengths() []int {
|
||||
return []int{
|
||||
length("", r.Key),
|
||||
length("", r.Op),
|
||||
length("", r.Value),
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Rlimit) setPaddings(max []int) {
|
||||
r.Paddings = setPaddings(
|
||||
max, []string{"", "", ""},
|
||||
[]any{r.Key, r.Op, r.Value},
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue