package cel
import "k8s.io/dynamic-resource-allocation/structured/namedresources/cel"
Index ¶
Variables ¶
var (
Compiler = newCompiler()
)
var ( SemverType = cel.ObjectType("kubernetes.Semver") )
Functions ¶
func SemverLib ¶
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 ¶
func (Semver) ConvertToType ¶
func (Semver) Equal ¶
func (Semver) Type ¶
func (Semver) Value ¶
func (v Semver) Value() interface{}
Source Files ¶
compile.go semver.go semverlib.go
- Version
- v0.31.0-alpha.2
- Published
- Jun 18, 2024
- Platform
- darwin/amd64
- Imports
- 13 packages
- Last checked
- 2 minutes ago –
Tools for package owners.