Versions in this module Expand all Collapse all v0 v0.31.0 Aug 7, 2026 Changes in this version + func EnvironmentFile(path string) cel.EnvOption + func TypeDescriptorSetFile(path string) cel.EnvOption + type CompiledExpression struct + Path string + func (c *CompiledExpression) CreateAST(_ Compiler) (*cel.Ast, map[string]any, error) + type Compiler interface + CreateEnv func() (*cel.Env, error) + CreatePolicyParser func() (*policy.Parser, error) + PolicyCompilerOptions func() []policy.CompilerOption + func NewCompiler(opts ...any) (Compiler, error) + type CustomMetadataCompiler interface + PolicyMetadataEnvOptions func() []PolicyMetadataEnvOption + type ExpressionType int + const CompiledExpressionFile + const ExpressionFile + const ExpressionTypeUnspecified + const PolicyFile + const RawExpressionString + type FileExpression struct + Path string + func (f *FileExpression) CreateAST(compiler Compiler) (*cel.Ast, map[string]any, error) + type FileFormat int + const BinaryProto + const CELPolicy + const CELString + const TextProto + const TextYAML + const Unspecified + func InferFileFormat(path string) FileFormat + type InputExpression interface + CreateAST func(Compiler) (*cel.Ast, map[string]any, error) + type PolicyMetadataEnvOption func(map[string]any) cel.EnvOption + type RawExpression struct + Value string + func (r *RawExpression) CreateAST(compiler Compiler) (*cel.Ast, map[string]any, error)