istio: istio.io/istio/mixer/pkg/lang/cel Index | Files

package cel

import "istio.io/istio/mixer/pkg/lang/cel"

Index

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
    LegacySyntaxCEL
)

Package cel imports 30 packages (graph) and is imported by 2 packages. Updated 2019-10-01. Refresh now. Tools for package owners.