feat(aa): add the Kind struct to manage aa rules.

This commit is contained in:
Alexandre Pujol 2024-05-28 18:15:22 +01:00
parent 1333ec2025
commit 3b0944c615
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
23 changed files with 239 additions and 223 deletions

View file

@ -4,7 +4,7 @@
package aa
const tokPIVOTROOT = "pivot_root"
const PIVOTROOT = "pivot_root"
type PivotRoot struct {
RuleBase
@ -57,6 +57,6 @@ func (r *PivotRoot) Constraint() constraint {
return blockKind
}
func (r *PivotRoot) Kind() string {
return tokPIVOTROOT
func (r *PivotRoot) Kind() Kind {
return PIVOTROOT
}