variables

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(log logr.Logger, ctx context.EvalInterface, condition kyverno.Condition) bool

Evaluate evaluates the condition

func EvaluateConditions

func EvaluateConditions(log logr.Logger, ctx context.EvalInterface, conditions interface{}) bool

EvaluateConditions evalues all the conditions present in a slice, in a backwards compatible way

func IsVariable added in v1.2.0

func IsVariable(element string) bool

IsVariable returns true if the element contains a 'valid' variable {{}}

func SubstituteVars added in v1.2.0

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 invalid or has nil value, it is considered as a failed variable substitution

Types

type NotFoundVariableErr added in v1.2.0

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

NotFoundVariableErr ...

func (NotFoundVariableErr) Error added in v1.2.0

func (n NotFoundVariableErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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