Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(ctx context.EvalInterface, condition kyverno.Condition) bool
Evaluate evaluates the condition
func EvaluateConditions ¶
func EvaluateConditions(ctx context.EvalInterface, conditions []kyverno.Condition) bool
EvaluateConditions evaluates multiple conditions
func SubstituteVars ¶ added in v1.1.3
func SubstituteVars(ctx context.EvalInterface, pattern interface{}) (interface{}, error)
SubstituteVars replaces the variables with the values defined in the context - if any variable is invaid or has nil value, it is considered as a failed varable substitution
Types ¶
type InvalidPath ¶ added in v1.1.3
type InvalidPath struct {
// contains filtered or unexported fields
}
InvalidPath stores the path to failed variable
func NewInvalidPath ¶ added in v1.1.3
func NewInvalidPath(path string) *InvalidPath
NewInvalidPath returns a new Invalid Path error
func (*InvalidPath) Error ¶ added in v1.1.3
func (e *InvalidPath) Error() string
Click to show internal directories.
Click to hide internal directories.