cellib

package
v0.14.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errors

func Errors() cel.EnvOption

func Library

func Library() cel.EnvOption

func Lists

func Lists() cel.EnvOption

func Networks

func Networks() cel.EnvOption

func Requests

func Requests() cel.EnvOption

func Strings

func Strings() cel.EnvOption

func Urls

func Urls() cel.EnvOption

Types

type CompiledExpression

type CompiledExpression struct {
	// contains filtered or unexported fields
}

func CompileExpression

func CompileExpression(env *cel.Env, expr, errMsg string) (*CompiledExpression, error)

func (*CompiledExpression) Eval

func (e *CompiledExpression) Eval(obj any) error

type Error

type Error struct {
	Source string
	// contains filtered or unexported fields
}

func WrapError

func WrapError(err error) Error

func (Error) ConvertToNative

func (e Error) ConvertToNative(typeDesc reflect.Type) (any, error)

func (Error) ConvertToType

func (e Error) ConvertToType(typeVal ref.Type) ref.Val

func (Error) Equal

func (e Error) Equal(other ref.Val) ref.Val

func (Error) Type

func (e Error) Type() ref.Type

func (Error) Value

func (e Error) Value() any

type ErrorType

type ErrorType struct {
	// contains filtered or unexported fields
}

func (ErrorType) ConvertToNative

func (e ErrorType) ConvertToNative(_ reflect.Type) (any, error)

func (ErrorType) ConvertToType

func (e ErrorType) ConvertToType(typeVal ref.Type) ref.Val

func (ErrorType) Equal

func (e ErrorType) Equal(other ref.Val) ref.Val

func (ErrorType) Type

func (e ErrorType) Type() ref.Type

func (ErrorType) Value

func (e ErrorType) Value() any

type EvalError

type EvalError struct {
	// contains filtered or unexported fields
}

func (*EvalError) Error

func (e *EvalError) Error() string

func (*EvalError) Is

func (e *EvalError) Is(err error) bool

type IPNetworks

type IPNetworks struct {
	cidranger.Ranger
	// contains filtered or unexported fields
}

func (IPNetworks) Contains

func (n IPNetworks) Contains(value ref.Val) ref.Val

func (IPNetworks) ConvertToNative

func (n IPNetworks) ConvertToNative(typeDesc reflect.Type) (any, error)

func (IPNetworks) ConvertToType

func (n IPNetworks) ConvertToType(typeVal ref.Type) ref.Val

func (IPNetworks) Equal

func (n IPNetworks) Equal(other ref.Val) ref.Val

func (IPNetworks) Type

func (n IPNetworks) Type() ref.Type

func (IPNetworks) Value

func (n IPNetworks) Value() any

Jump to

Keyboard shortcuts

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