Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEnv ¶
DefaultEnv produces a cel.Env with the necessary cel.EnvOption and cel.ProgramOption values preconfigured for usage throughout the module. If useUTC is true, timestamp operations use the UTC timezone instead of the local timezone.
func ProtoFieldToCELType ¶ added in v0.5.0
func ProtoFieldToCELType(fieldDesc protoreflect.FieldDescriptor, generic, forItems bool) *cel.Type
ProtoFieldToCELType resolves the CEL value type for the provided FieldDescriptor. If generic is true, the specific subtypes of map and repeated fields will be replaced with cel.DynType. If forItems is true, the type for the repeated list items is returned instead of the list type itself.
func RequiredCELEnvOptions ¶ added in v0.5.0
func RequiredCELEnvOptions(fieldDesc protoreflect.FieldDescriptor) []cel.EnvOption
RequiredCELEnvOptions returns the options required to have expressions which rely on the provided descriptor.
Types ¶
This section is empty.