cel

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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]interface{}) (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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL