Documentation ¶
Index ¶
- func CheckVariables(pattern interface{}, variables []string, path string) error
- func Evaluate(ctx context.EvalInterface, condition kyverno.Condition) bool
- func EvaluateConditions(ctx context.EvalInterface, conditions []kyverno.Condition) bool
- func SubstituteVariables(ctx context.EvalInterface, pattern interface{}) interface{}
- func ValidateVariables(ctx context.EvalInterface, pattern interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVariables ¶
CheckVariables checks if the variable regex has been used
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.