mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
78f24497fa
Policy Reporter v3 Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
15 lines
244 B
Go
15 lines
244 B
Go
package validate
|
|
|
|
type RuleSets struct {
|
|
Exclude []string
|
|
Include []string
|
|
Selector map[string]string
|
|
}
|
|
|
|
func (r RuleSets) Count() int {
|
|
return len(r.Exclude) + len(r.Include)
|
|
}
|
|
|
|
func (r RuleSets) Enabled() bool {
|
|
return r.Count() > 0
|
|
}
|