cel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileCELExpr added in v0.3.0

func CompileCELExpr(expr string) (*cel.Program, error)

func ExecuteBooleanCEL added in v0.3.0

func ExecuteBooleanCEL(ctx context.Context, program cel.Program, obj *unstructured.Unstructured) bool

ExecuteBoolean CEL executes the cel program with obj as the input. If the program returns and error or if the program returns a value that cannot be converted to bool, false is returned. Otherwise the bool returned by the CEL program is returned.

func ExecuteCEL added in v0.3.0

func ExecuteCEL(ctx context.Context, program cel.Program, obj *unstructured.Unstructured) ref.Val

Types

This section is empty.