package cel
import "k8s.io/dynamic-resource-allocation/cel"
Index ¶
- Variables
- func GetCompiler() *compiler
- func SemverLib() cel.EnvOption
- type CompilationResult
- type Device
- type Semver
Variables ¶
var ( SemverType = cel.ObjectType("kubernetes.Semver") )
Functions ¶
func GetCompiler ¶
func GetCompiler() *compiler
func SemverLib ¶
Types ¶
type CompilationResult ¶
type CompilationResult struct { Program cel.Program Error *apiservercel.Error Expression string OutputType *cel.Type Environment *cel.Env // contains filtered or unexported fields }
CompilationResult represents a compiled expression.
func (CompilationResult) DeviceMatches ¶
type Device ¶
type Device struct { // Driver gets used as domain for any attribute which does not already // have a domain prefix. If set, then it is also made available as a // string attribute. Driver string Attributes map[resourceapi.QualifiedName]resourceapi.DeviceAttribute Capacity map[resourceapi.QualifiedName]resource.Quantity }
Device defines the input values for a CEL selector expression.
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.11
- Published
- Jul 16, 2025
- Platform
- windows/amd64
- Imports
- 18 packages
- Last checked
- 1 minute ago –
Tools for package owners.