ext

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Macros = cel.Macros(
		parser.NewGlobalMacro("conditional", 3, conditionalExpander),
		parser.NewGlobalVarArgMacro(pick, pickExpander))
)

Functions

func ConvertKind

func ConvertKind(v reflect.Type) *expr.Type

func ConvertType

func ConvertType(typ attribute.Kind) *expr.Type

func ConvertValue

func ConvertValue(typ attribute.Kind, value interface{}) ref.Val

func DefaultValue

func DefaultValue(typ attribute.Kind) ref.Val

func RecoverType

func RecoverType(typ *expr.Type) attribute.Kind

func RecoverValue

func RecoverValue(value ref.Val) (interface{}, error)

func RegisterFunction

func RegisterFunction(operator string, trait int, fun interface{}) error

func RegisterInstanceOverload

func RegisterInstanceOverload(name string, operator string, fun interface{}) error

func RegisterOverload

func RegisterOverload(name string, operator string, fun interface{}) error

func RegisterOverloadBoth

func RegisterOverloadBoth(name string, operator string, fun interface{}) error

func RegisterSimpleFunction

func RegisterSimpleFunction(name string, fun interface{}) error

func RegisterSimpleFunctionBoth

func RegisterSimpleFunctionBoth(name string, fun interface{}) error

func StandardFunctionsEnvOption

func StandardFunctionsEnvOption() cel.EnvOption

func StandardOverloadsEnvOption

func StandardOverloadsEnvOption() cel.ProgramOption

Types

type DNSName

type DNSName struct {
	Name string
}

Jump to

Keyboard shortcuts

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