refractor(aa): rename base struct from RuleBase to Base

This commit is contained in:
Alexandre Pujol 2024-06-25 19:50:27 +01:00
parent 5b73923385
commit 272072d2a5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
24 changed files with 150 additions and 150 deletions

View file

@ -21,7 +21,7 @@ func init() {
}
type Rlimit struct {
RuleBase
Base
Key string
Op string
Value string
@ -35,19 +35,19 @@ func newRlimit(q Qualifier, rule rule) (Rule, error) {
return nil, fmt.Errorf("invalid rlimit format: %s", rule)
}
return &Rlimit{
RuleBase: newBase(rule),
Key: rule.Get(1),
Op: rule.Get(2),
Value: rule.Get(3),
Base: newBase(rule),
Key: rule.Get(1),
Op: rule.Get(2),
Value: rule.Get(3),
}, nil
}
func newRlimitFromLog(log map[string]string) Rule {
return &Rlimit{
RuleBase: newBaseFromLog(log),
Key: log["key"],
Op: log["op"],
Value: log["value"],
Base: newBaseFromLog(log),
Key: log["key"],
Op: log["op"],
Value: log["value"],
}
}