variables

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVariables

func CheckVariables(pattern interface{}, variables []string, path string) error

CheckVariables checks if the variable regex has been used

func Evaluate

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

func EvaluateConditions

func EvaluateConditions(ctx context.EvalInterface, conditions []kyverno.Condition) bool

func SubstituteVariables

func SubstituteVariables(ctx context.EvalInterface, pattern interface{}) interface{}

SubstituteVariables substitutes the JMESPATH with variable substitution supported substitutions - no operator + variable(string,object) unsupported substitutions - operator + variable(object) -> as we dont support operators with object types

func ValidateVariables

func ValidateVariables(ctx context.EvalInterface, pattern interface{}) string

ValidateVariables validates if referenced path is present return empty string if all paths are valid, otherwise return invalid path

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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