Documentation ¶
Index ¶
- func IsCELIdentifier(name string) bool
- type Compiler
- func (c *Compiler) AddVariable(name string, t *cel.Type) error
- func (c *Compiler) CompileCELExpression(expression string) (*cel.Ast, error)
- func (c *Compiler) EvalCELExpression(vars map[string]interface{}, ast *cel.Ast) (ref.Val, error)
- func (c *Compiler) ValidateBoolExpression(expression string) error
- func (c *Compiler) ValidateStringExpression(expression string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCELIdentifier ¶
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func (*Compiler) CompileCELExpression ¶
func (*Compiler) EvalCELExpression ¶
func (*Compiler) ValidateBoolExpression ¶
func (*Compiler) ValidateStringExpression ¶
Directories ¶
Path | Synopsis |
---|---|
Package library implements CEL extension functions that expose Kubewarden context-aware capabilities as CEL functions for the policy to use.
|
Package library implements CEL extension functions that expose Kubewarden context-aware capabilities as CEL functions for the policy to use. |
Click to show internal directories.
Click to hide internal directories.