Expr is a selector expression with allow/deny selector lists.
| 6 | |
| 7 | // Expr is a selector expression with allow/deny selector lists. |
| 8 | type Expr struct { |
| 9 | Allow []string `yaml:"allow,omitempty" json:"allow"` |
| 10 | Deny []string `yaml:"deny,omitempty" json:"deny"` |
| 11 | } |
| 12 | |
| 13 | func (e Expr) Empty() bool { |
| 14 | return len(e.Allow) == 0 && len(e.Deny) == 0 |
nothing calls this directly
no outgoing calls
no test coverage detected