istio: Index | Files

package cel

import ""


Package Files

builder.go functions.go provider.go translate.go types.go

type ExpressionBuilder Uses

type ExpressionBuilder struct {
    // contains filtered or unexported fields

ExpressionBuilder creates a CEL interpreter from an attribute manifest.

func NewBuilder Uses

func NewBuilder(finder attribute.AttributeDescriptorFinder, mode LanguageMode) *ExpressionBuilder

NewBuilder returns a new ExpressionBuilder

func (*ExpressionBuilder) Compile Uses

func (exb *ExpressionBuilder) Compile(text string) (attribute.Expression, descriptor.ValueType, error)

Compile the given text and return a pre-compiled expression object.

func (*ExpressionBuilder) EvalType Uses

func (exb *ExpressionBuilder) EvalType(text string) (descriptor.ValueType, error)

EvalType returns the type of an expression

type LanguageMode Uses

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

Package cel imports 31 packages (graph) and is imported by 2 packages. Updated 2020-06-07. Refresh now. Tools for package owners.