kubernetes/vendor/github.com/google/cel-go/interpreter/interpretable.go

type Interpretable

type InterpretableConst

type InterpretableAttribute

type InterpretableCall

type InterpretableConstructor

type evalTestOnly

// ID implements the Interpretable interface method.
func (test *evalTestOnly) ID() int64 {}

// Eval implements the Interpretable interface method.
func (test *evalTestOnly) Eval(ctx Activation) ref.Val {}

// AddQualifier appends a qualifier that will always and only perform a presence test.
func (test *evalTestOnly) AddQualifier(q Qualifier) (Attribute, error) {}

type testOnlyQualifier

// Qualify determines whether the test-only qualifier is present on the input object.
func (q *testOnlyQualifier) Qualify(vars Activation, obj any) (any, error) {}

// QualifyIfPresent returns whether the target field in the test-only expression is present.
func (q *testOnlyQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {}

// QualifierValueEquals determines whether the test-only constant qualifier equals the input value.
func (q *testOnlyQualifier) QualifierValueEquals(value any) bool {}

// NewConstValue creates a new constant valued Interpretable.
func NewConstValue(id int64, val ref.Val) InterpretableConst {}

type evalConst

// ID implements the Interpretable interface method.
func (cons *evalConst) ID() int64 {}

// Eval implements the Interpretable interface method.
func (cons *evalConst) Eval(ctx Activation) ref.Val {}

// Value implements the InterpretableConst interface method.
func (cons *evalConst) Value() ref.Val {}

type evalOr

// ID implements the Interpretable interface method.
func (or *evalOr) ID() int64 {}

// Eval implements the Interpretable interface method.
func (or *evalOr) Eval(ctx Activation) ref.Val {}

type evalAnd

// ID implements the Interpretable interface method.
func (and *evalAnd) ID() int64 {}

// Eval implements the Interpretable interface method.
func (and *evalAnd) Eval(ctx Activation) ref.Val {}

type evalEq

// ID implements the Interpretable interface method.
func (eq *evalEq) ID() int64 {}

// Eval implements the Interpretable interface method.
func (eq *evalEq) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (*evalEq) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (*evalEq) OverloadID() string {}

// Args implements the InterpretableCall interface method.
func (eq *evalEq) Args() []Interpretable {}

type evalNe

// ID implements the Interpretable interface method.
func (ne *evalNe) ID() int64 {}

// Eval implements the Interpretable interface method.
func (ne *evalNe) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (*evalNe) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (*evalNe) OverloadID() string {}

// Args implements the InterpretableCall interface method.
func (ne *evalNe) Args() []Interpretable {}

type evalZeroArity

// ID implements the Interpretable interface method.
func (zero *evalZeroArity) ID() int64 {}

// Eval implements the Interpretable interface method.
func (zero *evalZeroArity) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (zero *evalZeroArity) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (zero *evalZeroArity) OverloadID() string {}

// Args returns the argument to the unary function.
func (zero *evalZeroArity) Args() []Interpretable {}

type evalUnary

// ID implements the Interpretable interface method.
func (un *evalUnary) ID() int64 {}

// Eval implements the Interpretable interface method.
func (un *evalUnary) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (un *evalUnary) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (un *evalUnary) OverloadID() string {}

// Args returns the argument to the unary function.
func (un *evalUnary) Args() []Interpretable {}

type evalBinary

// ID implements the Interpretable interface method.
func (bin *evalBinary) ID() int64 {}

// Eval implements the Interpretable interface method.
func (bin *evalBinary) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (bin *evalBinary) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (bin *evalBinary) OverloadID() string {}

// Args returns the argument to the unary function.
func (bin *evalBinary) Args() []Interpretable {}

type evalVarArgs

// NewCall creates a new call Interpretable.
func NewCall(id int64, function, overload string, args []Interpretable, impl functions.FunctionOp) InterpretableCall {}

// ID implements the Interpretable interface method.
func (fn *evalVarArgs) ID() int64 {}

// Eval implements the Interpretable interface method.
func (fn *evalVarArgs) Eval(ctx Activation) ref.Val {}

// Function implements the InterpretableCall interface method.
func (fn *evalVarArgs) Function() string {}

// OverloadID implements the InterpretableCall interface method.
func (fn *evalVarArgs) OverloadID() string {}

// Args returns the argument to the unary function.
func (fn *evalVarArgs) Args() []Interpretable {}

type evalList

// ID implements the Interpretable interface method.
func (l *evalList) ID() int64 {}

// Eval implements the Interpretable interface method.
func (l *evalList) Eval(ctx Activation) ref.Val {}

func (l *evalList) InitVals() []Interpretable {}

func (l *evalList) Type() ref.Type {}

type evalMap

// ID implements the Interpretable interface method.
func (m *evalMap) ID() int64 {}

// Eval implements the Interpretable interface method.
func (m *evalMap) Eval(ctx Activation) ref.Val {}

func (m *evalMap) InitVals() []Interpretable {}

func (m *evalMap) Type() ref.Type {}

type evalObj

// ID implements the Interpretable interface method.
func (o *evalObj) ID() int64 {}

// Eval implements the Interpretable interface method.
func (o *evalObj) Eval(ctx Activation) ref.Val {}

func (o *evalObj) InitVals() []Interpretable {}

func (o *evalObj) Type() ref.Type {}

type evalFold

// ID implements the Interpretable interface method.
func (fold *evalFold) ID() int64 {}

// Eval implements the Interpretable interface method.
func (fold *evalFold) Eval(ctx Activation) ref.Val {}

type evalSetMembership

// ID implements the Interpretable interface method.
func (e *evalSetMembership) ID() int64 {}

// Eval implements the Interpretable interface method.
func (e *evalSetMembership) Eval(ctx Activation) ref.Val {}

type evalWatch

// Eval implements the Interpretable interface method.
func (e *evalWatch) Eval(ctx Activation) ref.Val {}

type evalWatchAttr

// AddQualifier creates a wrapper over the incoming qualifier which observes the qualification
// result.
func (e *evalWatchAttr) AddQualifier(q Qualifier) (Attribute, error) {}

// Eval implements the Interpretable interface method.
func (e *evalWatchAttr) Eval(vars Activation) ref.Val {}

type evalWatchConstQual

// Qualify observes the qualification of a object via a constant boolean, int, string, or uint.
func (e *evalWatchConstQual) Qualify(vars Activation, obj any) (any, error) {}

// QualifyIfPresent conditionally qualifies the variable and only records a value if one is present.
func (e *evalWatchConstQual) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {}

// QualifierValueEquals tests whether the incoming value is equal to the qualifying constant.
func (e *evalWatchConstQual) QualifierValueEquals(value any) bool {}

type evalWatchAttrQual

// Qualify observes the qualification of a object via a value computed at runtime.
func (e *evalWatchAttrQual) Qualify(vars Activation, obj any) (any, error) {}

// QualifyIfPresent conditionally qualifies the variable and only records a value if one is present.
func (e *evalWatchAttrQual) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {}

type evalWatchQual

// Qualify observes the qualification of a object via a value computed at runtime.
func (e *evalWatchQual) Qualify(vars Activation, obj any) (any, error) {}

// QualifyIfPresent conditionally qualifies the variable and only records a value if one is present.
func (e *evalWatchQual) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {}

type evalWatchConst

// Eval implements the Interpretable interface method.
func (e *evalWatchConst) Eval(vars Activation) ref.Val {}

type evalExhaustiveOr

// ID implements the Interpretable interface method.
func (or *evalExhaustiveOr) ID() int64 {}

// Eval implements the Interpretable interface method.
func (or *evalExhaustiveOr) Eval(ctx Activation) ref.Val {}

type evalExhaustiveAnd

// ID implements the Interpretable interface method.
func (and *evalExhaustiveAnd) ID() int64 {}

// Eval implements the Interpretable interface method.
func (and *evalExhaustiveAnd) Eval(ctx Activation) ref.Val {}

type evalExhaustiveConditional

// ID implements the Interpretable interface method.
func (cond *evalExhaustiveConditional) ID() int64 {}

// Eval implements the Interpretable interface method.
func (cond *evalExhaustiveConditional) Eval(ctx Activation) ref.Val {}

type evalAttr

var _

// ID of the attribute instruction.
func (a *evalAttr) ID() int64 {}

// AddQualifier implements the InterpretableAttribute interface method.
func (a *evalAttr) AddQualifier(qual Qualifier) (Attribute, error) {}

// Attr implements the InterpretableAttribute interface method.
func (a *evalAttr) Attr() Attribute {}

// Adapter implements the InterpretableAttribute interface method.
func (a *evalAttr) Adapter() types.Adapter {}

// Eval implements the Interpretable interface method.
func (a *evalAttr) Eval(ctx Activation) ref.Val {}

// Qualify proxies to the Attribute's Qualify method.
func (a *evalAttr) Qualify(ctx Activation, obj any) (any, error) {}

// QualifyIfPresent proxies to the Attribute's QualifyIfPresent method.
func (a *evalAttr) QualifyIfPresent(ctx Activation, obj any, presenceOnly bool) (any, bool, error) {}

func (a *evalAttr) IsOptional() bool {}

// Resolve proxies to the Attribute's Resolve method.
func (a *evalAttr) Resolve(ctx Activation) (any, error) {}

type evalWatchConstructor

// InitVals implements the InterpretableConstructor InitVals function.
func (c *evalWatchConstructor) InitVals() []Interpretable {}

// Type implements the InterpretableConstructor Type function.
func (c *evalWatchConstructor) Type() ref.Type {}

// ID implements the Interpretable ID function.
func (c *evalWatchConstructor) ID() int64 {}

// Eval implements the Interpretable Eval function.
func (c *evalWatchConstructor) Eval(ctx Activation) ref.Val {}

func invalidOptionalEntryInit(field any, value ref.Val) ref.Val {}

func invalidOptionalElementInit(value ref.Val) ref.Val {}