Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Compiler = newCompiler()
)
View Source
var (
SemverType = cel.ObjectType("kubernetes.Semver")
)
Functions ¶
Types ¶
type CompilationResult ¶
type CompilationResult struct {
Program cel.Program
Error *apiservercel.Error
Expression string
OutputType *cel.Type
Environment *cel.Env
}
CompilationResult represents a compiled expression.
func (CompilationResult) Evaluate ¶
func (c CompilationResult) Evaluate(ctx context.Context, attributes []resourceapi.NamedResourcesAttribute) (bool, error)
type Semver ¶
type Semver struct {
semver.Version
}
Semver provdes a CEL representation of a semver.Version.
func (Semver) ConvertToNative ¶
Click to show internal directories.
Click to hide internal directories.