MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AttributePattern

Struct AttributePattern

interpreter/attribute_patterns.go:48–51  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

46// a specific index `0` should match. And lastly, the third example matches any indexed access
47// that later selects the 'name' field.
48type AttributePattern struct {
49 variable string
50 qualifierPatterns []*AttributeQualifierPattern
51}
52
53// NewAttributePattern produces a new mutable AttributePattern based on a variable name.
54func NewAttributePattern(variable string) *AttributePattern {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected