AttributePattern represents a top-level variable with an optional set of qualifier patterns. When using a CEL expression within a container, e.g. a package or namespace, the variable name in the pattern must match the qualified name produced during the variable namespace resolution. For example, if
| 46 | // a specific index `0` should match. And lastly, the third example matches any indexed access |
| 47 | // that later selects the 'name' field. |
| 48 | type AttributePattern struct { |
| 49 | variable string |
| 50 | qualifierPatterns []*AttributeQualifierPattern |
| 51 | } |
| 52 | |
| 53 | // NewAttributePattern produces a new mutable AttributePattern based on a variable name. |
| 54 | func NewAttributePattern(variable string) *AttributePattern { |
nothing calls this directly
no outgoing calls
no test coverage detected