Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrContextUnpack = errors.New("context unpacking error") ErrEnvCreation = errors.New("CEL environment creation error") ErrExpressionCompilation = errors.New("CEL expression compilation error") ErrProgramConstruction = errors.New("program construction error") ErrProgramEvaluation = errors.New("program evaluation error") ErrInvalidReturnType = errors.New("invalid return type") ErrDuplicateCELConditionName = errors.New("duplicate CEL condition name") ErrCELConditionEvaluation = errors.New("CEL condition evaluation failed") ErrInvalidCELConditionName = errors.New("invalid CEL condition name") )
Functions ¶
This section is empty.
Types ¶
type CelCtx ¶
type CelCtx struct {
// contains filtered or unexported fields
}
CelCtx contains a cel environment that is prepared with a tmplCtx and pre-evaluated conditions.
func New ¶
func New(conditions []manifests.PackageManifestNamedCondition, tmplCtx *packagetypes.PackageRenderContext, ) (CelCtx, error)
New pre-evaluates the given named conditions against tmplCtx and exposes both tmplCtx + named condition results to cel programs.
Click to show internal directories.
Click to hide internal directories.