Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("unsupported type")
ErrUnsupportedType is returned when the type is not supported.
Functions ¶
func GoNativeType ¶
GoNativeType transforms CEL output into corresponding Go types
func IsBoolOrOptionalBool ¶
IsBoolOrOptionalBool checks if a CEL type is bool or optional_type(bool). This is useful for validating condition expressions that must return boolean values.
func IsBoolType ¶
IsBoolType checks if the given ref.Val is of type BoolType
func WouldMatchIfUnwrapped ¶
WouldMatchIfUnwrapped checks if outputType would be assignable to expectedType if we unwrapped the optional wrapper from outputType. This detects the case where outputType is optional_type(T) and expectedType is T.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.