Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateValueWithPattern ¶
func ValidateValueWithPattern(value, pattern interface{}) bool
ValidateValueWithPattern validates value with operators and wildcards
Types ¶
type ValidationError ¶
type ValidationError struct { StatusCode ValidationFailureReason ErrorMsg string }
func ValidateResourceWithPattern ¶
func ValidateResourceWithPattern(ctx context.EvalInterface, resource, pattern interface{}) (string, ValidationError)
validateResourceWithPattern is a start of element-by-element validation process It assumes that validation is started from root, so "/" is passed
type ValidationFailureReason ¶
type ValidationFailureReason int
const ( PathNotPresent ValidationFailureReason = iota Rulefailure )
Click to show internal directories.
Click to hide internal directories.