Documentation
¶
Overview ¶
Package cel provides definitions for defining the Results CEL environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
func Match(prg cel.Program, data map[string]any) (bool, error)
Match determines whether the given CEL filter matches the result.
func NewEnv ¶
func NewEnv() (*cel.Env, error)
NewEnv returns the CEL environment for Results, loading in definitions for known types.
func NewRecordsEnv ¶ added in v0.7.0
func NewRecordsEnv() (*cel.Env, error)
NewRecordsEnv creates a CEL program to build SQL filters for Record objects.
func NewResultsEnv ¶ added in v0.7.0
func NewResultsEnv() (*cel.Env, error)
NewResultsEnv creates a CEL program to build SQL filters for Result objects.
func ParseFilter ¶
func ParseFilter(env *cel.Env, filter string) (cel.Program, error)
ParseFilter creates a CEL program based on the given filter string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.