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
|
|
@ -121,3 +121,20 @@ func (r *Signal) Merge(other Rule) bool {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (r *Signal) Lengths() []int {
|
||||
return []int{
|
||||
r.Qualifier.getLenAudit(),
|
||||
r.Qualifier.getLenAccess(),
|
||||
length("", r.Access),
|
||||
length("set=", r.Set),
|
||||
length("peer=", r.Peer),
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Signal) setPaddings(max []int) {
|
||||
r.Paddings = append(r.Qualifier.setPaddings(max[:2]), setPaddings(
|
||||
max[2:], []string{"", "set=", "peer="},
|
||||
[]any{r.Access, r.Set, r.Peer})...,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue