Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpressionBuilder ¶
type ExpressionBuilder struct {
// contains filtered or unexported fields
}
ExpressionBuilder creates a CEL interpreter from an attribute manifest.
func NewExpressionBuilder ¶
func NewExpressionBuilder(attributes map[string]attribute.Kind, mode LanguageMode) *ExpressionBuilder
NewExpressionBuilder returns a new ExpressionBuilder
func (*ExpressionBuilder) Compile ¶
func (e *ExpressionBuilder) Compile(text string) (attribute.Expression, attribute.Kind, error)
Compile the given text and return a pre-compiled expression object.
type LanguageMode ¶
type LanguageMode int
LanguageMode controls parsing and evaluation properties of the expression builder
const ( // CEL mode uses CEL syntax and runtime CEL LanguageMode = iota // CompatCEXL uses CEXL syntax and CEL runtime CompatCEXL )
Click to show internal directories.
Click to hide internal directories.