cel-go – github.com/google/cel-go Directories

cel-go/ directory

Directories

PathSynopsis
celPackage cel defines the top-level interface for the Common Expression Language (CEL).
checkerPackage checker defines functions to type-checked a parsed expression against a set of identifier and function declarations.
checker/declsPackage decls provides helpers for creating variable and function declarations.
commonPackage common defines types and utilities common to expression parsing, checking, and interpretation
common/astPackage ast declares data structures useful for parsed and checked abstract syntax trees
common/containersPackage containers defines types and functions for resolving qualified names within a namespace or type provided to CEL.
common/debugPackage debug provides tools to print a parsed expression graph and adorn each expression element with additional metadata.
common/declsPackage decls contains function and variable declaration structs and helper methods.
common/envPackage env provides a representation of a CEL environment.
common/functionsPackage functions defines the standard builtin functions supported by the interpreter
common/operatorsPackage operators defines the internal function names of operators.
common/overloadsPackage overloads defines the internal overload identifiers for function and operator overloads.
common/runesPackage runes provides interfaces and utilities for working with runes.
common/stdlibPackage stdlib contains all of the standard library function declarations and definitions for CEL.
common/typesPackage types contains the types, traits, and utilities common to all components of expression handling.
common/types/pbPackage pb reflects over protocol buffer descriptors to generate objects that simplify type, enum, and field lookup.
common/types/refPackage ref contains the reference interfaces used throughout the types components.
common/types/traitsPackage traits defines interfaces that a type may implement to participate in operator overloads and function dispatch.
examples
extPackage ext contains CEL extension libraries where each library defines a related set of constants, functions, macros, or other configuration settings which may not be covered by the core CEL spec.
interpreterPackage interpreter provides functions to evaluate parsed expressions with the option to augment the evaluation with inputs and functions supplied at evaluation time.
interpreter/functionsPackage functions defines the standard builtin functions supported by the interpreter and as declared within the checker#StandardDeclarations.
parserPackage parser declares an expression parser with support for macro expansion.
parser/genPackage gen contains all of the ANTLR-generated sources used by the cel-go parser.
testPackage test provides a YAML-serializable test suite for CEL tests.
test/benchPackage bench defines a structure for benchmarked tests against custom CEL environments.
test/proto2pb
test/proto3pb
Version
v0.25.0 (latest)
Published
Apr 22, 2025
Platform
linux/amd64
Last checked
1 week ago

Tools for package owners.