feat(aa): add the Kind struct to manage aa rules.
This commit is contained in:
parent
1333ec2025
commit
3b0944c615
23 changed files with 239 additions and 223 deletions
|
|
@ -6,10 +6,10 @@ package aa
|
|||
|
||||
import "fmt"
|
||||
|
||||
const tokCHANGEPROFILE = "change_profile"
|
||||
const CHANGEPROFILE Kind = "change_profile"
|
||||
|
||||
func init() {
|
||||
requirements[tokCHANGEPROFILE] = requirement{
|
||||
requirements[CHANGEPROFILE] = requirement{
|
||||
"mode": []string{"safe", "unsafe"},
|
||||
}
|
||||
}
|
||||
|
|
@ -67,6 +67,6 @@ func (r *ChangeProfile) Constraint() constraint {
|
|||
return blockKind
|
||||
}
|
||||
|
||||
func (r *ChangeProfile) Kind() string {
|
||||
return tokCHANGEPROFILE
|
||||
func (r *ChangeProfile) Kind() Kind {
|
||||
return CHANGEPROFILE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue