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
|
|
@ -69,5 +69,11 @@ func (r *Userns) Compare(other Rule) int {
|
|||
func (r *Userns) Merge(other Rule) bool {
|
||||
o, _ := other.(*Userns)
|
||||
b := &r.Base
|
||||
return b.merge(o.Base)
|
||||
return b.merge(o.Base) // Always merge userns rules
|
||||
}
|
||||
|
||||
func (r *Userns) Lengths() []int {
|
||||
return []int{} // No len for userns
|
||||
}
|
||||
|
||||
func (r *Userns) setPaddings(max []int) {} // No paddings for userns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue