Documentation ¶
Index ¶
- func Evaluate(log logr.Logger, ctx context.EvalInterface, condition kyverno.Condition) bool
- func EvaluateConditions(log logr.Logger, ctx context.EvalInterface, conditions []kyverno.Condition) bool
- func IsVariable(element string) bool
- func SubstituteVars(log logr.Logger, ctx context.EvalInterface, pattern interface{}) (interface{}, error)
- type NotFoundVariableErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateConditions ¶
func EvaluateConditions(log logr.Logger, ctx context.EvalInterface, conditions []kyverno.Condition) bool
EvaluateConditions evaluates multiple conditions
func IsVariable ¶ added in v1.1.5
IsVariable returns true if the element contains a 'valid' variable {{}}
func SubstituteVars ¶ added in v1.1.3
func SubstituteVars(log logr.Logger, 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 NotFoundVariableErr ¶ added in v1.1.6
type NotFoundVariableErr struct {
// contains filtered or unexported fields
}
func (NotFoundVariableErr) Error ¶ added in v1.1.6
func (n NotFoundVariableErr) Error() string
Click to show internal directories.
Click to hide internal directories.