cel

package
v0.0.0-...-1a56975 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 33 Imported by: 0

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

NewBuilder returns a new ExpressionBuilder

func (*ExpressionBuilder) Compile

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL