Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedType is returned when the type is not supported. ErrUnsupportedType = errors.New("unsupported type") )
Functions ¶
func DefaultEnvironment ¶
DefaultEnvironment returns the default CEL environment.
func GoNativeType ¶
GoNativeType transforms CEL output into corresponding Go types
func IsBoolType ¶
IsBoolType checks if the given ref.Val is of type BoolType
Types ¶
type EnvOption ¶
type EnvOption func(*envOptions)
EnvOption is a function that modifies the environment options.
func WithCustomDeclarations ¶
WithCustomDeclarations adds custom declarations to the CEL environment.
func WithResourceIDs ¶
WithResourceIDs adds resource ids that will be declared as CEL variables.
Click to show internal directories.
Click to hide internal directories.