Documentation ¶
Index ¶
- type EqualHandler
- type NotEqualHandler
- type OperatorHandler
- func CreateOperatorHandler(ctx context.EvalInterface, op kyverno.ConditionOperator, ...) OperatorHandler
- func NewEqualHandler(ctx context.EvalInterface, subHandler VariableSubstitutionHandler) OperatorHandler
- func NewNotEqualHandler(ctx context.EvalInterface, subHandler VariableSubstitutionHandler) OperatorHandler
- type VariableSubstitutionHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EqualHandler ¶
type EqualHandler struct {
// contains filtered or unexported fields
}
EqualHandler provides implementation to handle NotEqual Operator
func (EqualHandler) Evaluate ¶
func (eh EqualHandler) Evaluate(key, value interface{}) bool
Evaluate evaluates expression with Equal Operator
type NotEqualHandler ¶
type NotEqualHandler struct {
// contains filtered or unexported fields
}
NotEqualHandler provides implementation to handle NotEqual Operator
func (NotEqualHandler) Evaluate ¶
func (neh NotEqualHandler) Evaluate(key, value interface{}) bool
Evaluate evaluates expression with NotEqual Operator
type OperatorHandler ¶
type OperatorHandler interface { Evaluate(key, value interface{}) bool // contains filtered or unexported methods }
OperatorHandler provides interface to manage types
func CreateOperatorHandler ¶
func CreateOperatorHandler(ctx context.EvalInterface, op kyverno.ConditionOperator, subHandler VariableSubstitutionHandler) OperatorHandler
CreateOperatorHandler returns the operator handler based on the operator used in condition
func NewEqualHandler ¶
func NewEqualHandler(ctx context.EvalInterface, subHandler VariableSubstitutionHandler) OperatorHandler
NewEqualHandler returns handler to manage Equal operations
func NewNotEqualHandler ¶
func NewNotEqualHandler(ctx context.EvalInterface, subHandler VariableSubstitutionHandler) OperatorHandler
NewNotEqualHandler returns handler to manage NotEqual operations
type VariableSubstitutionHandler ¶
type VariableSubstitutionHandler = func(ctx context.EvalInterface, pattern interface{}) (interface{}, error)
VariableSubstitutionHandler defines the handler function for variable substitution
Click to show internal directories.
Click to hide internal directories.