feat(aa): continue refractoring the aa structure.
This commit is contained in:
parent
8ef858ad35
commit
c97886d960
22 changed files with 160 additions and 182 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
type Mqueue struct {
|
||||
Rule
|
||||
RuleBase
|
||||
Qualifier
|
||||
Access string
|
||||
Type string
|
||||
|
|
@ -17,7 +17,7 @@ type Mqueue struct {
|
|||
Name string
|
||||
}
|
||||
|
||||
func newMqueueFromLog(log map[string]string) *Mqueue {
|
||||
func newMqueueFromLog(log map[string]string) Rule {
|
||||
mqueueType := "posix"
|
||||
if strings.Contains(log["class"], "posix") {
|
||||
mqueueType = "posix"
|
||||
|
|
@ -25,7 +25,7 @@ func newMqueueFromLog(log map[string]string) *Mqueue {
|
|||
mqueueType = "sysv"
|
||||
}
|
||||
return &Mqueue{
|
||||
Rule: newRuleFromLog(log),
|
||||
RuleBase: newRuleFromLog(log),
|
||||
Qualifier: newQualifierFromLog(log),
|
||||
Access: toAccess(log["requested"]),
|
||||
Type: mqueueType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue