cel

package
v0.31.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Compiler = newCompiler()
)
View Source
var (
	SemverType = cel.ObjectType("kubernetes.Semver")
)

Functions

func SemverLib

func SemverLib() cel.EnvOption

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

type Semver

type Semver struct {
	semver.Version
}

Semver provdes a CEL representation of a semver.Version.

func (Semver) ConvertToNative

func (v Semver) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (Semver) ConvertToType

func (v Semver) ConvertToType(typeVal ref.Type) ref.Val

func (Semver) Equal

func (v Semver) Equal(other ref.Val) ref.Val

func (Semver) Type

func (v Semver) Type() ref.Type

func (Semver) Value

func (v Semver) Value() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL