celfilter

package
v1.21.95 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package celfilter is the CEL engine for github.com/flanksource/clicky/api/filter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Use

func Use()

Use makes the CEL adapter the filter engine.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func New

func New(options ...cel.EnvOption) *Adapter

New returns a CEL adapter with the cel-go standard library, the ext strings/lists/math/encoders/sets libraries and any extra options.

func (*Adapter) Compile

func (a *Adapter) Compile(expression string, sample map[string]any) (filter.Predicate, error)

func (*Adapter) Validate

func (a *Adapter) Validate(expression string) error

Jump to

Keyboard shortcuts

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