operator

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DurationOperatorHandler added in v1.4.2

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

DurationOperatorHandler provides implementation to handle Duration Operations associated with policies

func (DurationOperatorHandler) Evaluate added in v1.4.2

func (doh DurationOperatorHandler) Evaluate(key, value interface{}) bool

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 InHandler added in v1.2.0

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

InHandler provides implementation to handle In Operator

func (InHandler) Evaluate added in v1.2.0

func (in InHandler) Evaluate(key, value interface{}) bool

Evaluate evaluates expression with In 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 NotInHandler added in v1.2.0

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

NotInHandler provides implementation to handle NotIn Operator

func (NotInHandler) Evaluate added in v1.2.0

func (nin NotInHandler) Evaluate(key, value interface{}) bool

Evaluate evaluates expression with NotIn Operator

type NumericOperatorHandler added in v1.3.2

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

NumericOperatorHandler provides implementation to handle Numeric Operations associated with policies

func (NumericOperatorHandler) Evaluate added in v1.3.2

func (noh NumericOperatorHandler) Evaluate(key, value interface{}) bool

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(log logr.Logger, ctx context.EvalInterface, op kyverno.ConditionOperator) OperatorHandler

CreateOperatorHandler returns the operator handler based on the operator used in condition

func NewDurationOperatorHandler added in v1.4.2

func NewDurationOperatorHandler(log logr.Logger, ctx context.EvalInterface, op kyverno.ConditionOperator) OperatorHandler

NewDurationOperatorHandler returns handler to manage the provided duration operations (>, >=, <=, <)

func NewEqualHandler

func NewEqualHandler(log logr.Logger, ctx context.EvalInterface) OperatorHandler

NewEqualHandler returns handler to manage Equal operations

func NewInHandler added in v1.2.0

func NewInHandler(log logr.Logger, ctx context.EvalInterface) OperatorHandler

NewInHandler returns handler to manage In operations

func NewNotEqualHandler

func NewNotEqualHandler(log logr.Logger, ctx context.EvalInterface) OperatorHandler

NewNotEqualHandler returns handler to manage NotEqual operations

func NewNotInHandler added in v1.2.0

func NewNotInHandler(log logr.Logger, ctx context.EvalInterface) OperatorHandler

NewNotInHandler returns handler to manage NotIn operations

func NewNumericOperatorHandler added in v1.3.2

func NewNumericOperatorHandler(log logr.Logger, ctx context.EvalInterface, op kyverno.ConditionOperator) OperatorHandler

NewNumericOperatorHandler returns handler to manage the provided numeric operations (>, >=, <=, <)

type VariableSubstitutionHandler

type VariableSubstitutionHandler = func(log logr.Logger, ctx context.EvalInterface, pattern interface{}) (interface{}, error)

VariableSubstitutionHandler defines the handler function for variable substitution

Jump to

Keyboard shortcuts

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