cel

package
v0.0.0-...-4995b57 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cel implements the CEL output plugin. It also exports Compile, the IR-to-CEL translation, for in-process use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Name string
	Ast  *cel.Ast
}

Validator is the type-checked CEL validator for one definition. Its expression evaluates true exactly when a value of that type, bound to the variable self, satisfies the definition's constraints.

func Compile

func Compile(ir validity.IR) ([]Validator, error)

Compile builds a type-checked CEL Validator for each top-level definition in ir. It returns an error if any constraint cannot be expressed in CEL.

Jump to

Keyboard shortcuts

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