cel

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 10 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 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