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.30.0-rc.1
- Published
- Apr 3, 2024
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 4 seconds ago –
Tools for package owners.