Documentation
¶
Index ¶
- Constants
- Variables
- func NewCompiler(opts ...cel.EnvOption) language.Compiler
- type Error
- func (e *Error) ConvertToNative(typeDesc reflect.Type) (any, error)
- func (e *Error) ConvertToType(typeVal ref.Type) ref.Val
- func (e *Error) Equal(other ref.Val) ref.Val
- func (e *Error) Is(target error) bool
- func (e *Error) String() string
- func (e *Error) Type() ref.Type
- func (e *Error) Unwrap() error
- func (e *Error) Value() any
Constants ¶
View Source
const Language = "cel"
Variables ¶
View Source
var ErrorType = cel.ObjectType("error")
View Source
var TypeAdapter = &adapter{}
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error type that wraps a generic error.
func (*Error) ConvertToNative ¶
ConvertToNative converts the Error instance to a syscall Go type as per the provided type descriptor.
func (*Error) ConvertToType ¶
ConvertToType converts the Error instance to a specified ref.Type value.
func (*Error) Equal ¶
Equal checks equality between the Error instance and another ref.Val instance.
Click to show internal directories.
Click to hide internal directories.