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 NewBuilder ¶
func NewBuilder(finder ast.AttributeDescriptorFinder, mode LanguageMode) *ExpressionBuilder
NewBuilder returns a new ExpressionBuilder
func (*ExpressionBuilder) Compile ¶
func (exb *ExpressionBuilder) Compile(text string) (compiled.Expression, descriptor.ValueType, error)
Compile the given text and return a pre-compiled expression object.
func (*ExpressionBuilder) EvalType ¶
func (exb *ExpressionBuilder) EvalType(text string) (descriptor.ValueType, error)
EvalType returns the type of an expression
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 // LegacySyntaxCEL uses CEXL syntax and CEL runtime LegacySyntaxCEL )
Click to show internal directories.
Click to hide internal directories.