Documentation ¶
Index ¶
- func GetAnchorsResourcesFromMap(patternMap map[string]interface{}) (map[string]interface{}, map[string]interface{})
- func IsAddingAnchor(key string) bool
- func IsConditionAnchor(str string) bool
- func IsEqualityAnchor(str string) bool
- func IsExistanceAnchor(str string) bool
- func IsNegationAnchor(str string) bool
- type ConditionAnchorHandler
- type DefaultHandler
- type EqualityHandler
- type ExistanceHandler
- type IsAnchor
- type NegationHandler
- type ValidationHandler
- func CreateElementHandler(element string, pattern interface{}, path string) ValidationHandler
- func NewConditionAnchorHandler(anchor string, pattern interface{}, path string) ValidationHandler
- func NewDefaultHandler(element string, pattern interface{}, path string) ValidationHandler
- func NewEqualityHandler(anchor string, pattern interface{}, path string) ValidationHandler
- func NewExistanceHandler(anchor string, pattern interface{}, path string) ValidationHandler
- func NewNegationHandler(anchor string, pattern interface{}, path string) ValidationHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnchorsResourcesFromMap ¶ added in v1.1.0
func IsAddingAnchor ¶
func IsConditionAnchor ¶
func IsEqualityAnchor ¶
func IsExistanceAnchor ¶
func IsNegationAnchor ¶
Types ¶
type ConditionAnchorHandler ¶ added in v1.1.0
type ConditionAnchorHandler struct {
// contains filtered or unexported fields
}
ConditionAnchorHandler provides handler for condition anchor
type DefaultHandler ¶ added in v1.1.0
type DefaultHandler struct {
// contains filtered or unexported fields
}
DefaultHandler provides handler for non anchor element
type EqualityHandler ¶ added in v1.1.0
type EqualityHandler struct {
// contains filtered or unexported fields
}
EqualityHandler provides handler for non anchor element
type ExistanceHandler ¶ added in v1.1.0
type ExistanceHandler struct {
// contains filtered or unexported fields
}
ExistanceHandler provides handlers to process exitence anchor handler
type NegationHandler ¶ added in v1.1.0
type NegationHandler struct {
// contains filtered or unexported fields
}
NegationHandler provides handler for check if the tag in anchor is not defined
type ValidationHandler ¶ added in v1.1.0
type ValidationHandler interface {
Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)
}
ValidationHandler for element processes
func CreateElementHandler ¶ added in v1.1.0
func CreateElementHandler(element string, pattern interface{}, path string) ValidationHandler
CreateElementHandler factory to process elements
func NewConditionAnchorHandler ¶ added in v1.1.0
func NewConditionAnchorHandler(anchor string, pattern interface{}, path string) ValidationHandler
NewConditionAnchorHandler returns an instance of condition acnhor handler
func NewDefaultHandler ¶ added in v1.1.0
func NewDefaultHandler(element string, pattern interface{}, path string) ValidationHandler
NewDefaultHandler returns handler for non anchor elements
func NewEqualityHandler ¶ added in v1.1.0
func NewEqualityHandler(anchor string, pattern interface{}, path string) ValidationHandler
NewEqualityHandler returens instance of equality handler
func NewExistanceHandler ¶ added in v1.1.0
func NewExistanceHandler(anchor string, pattern interface{}, path string) ValidationHandler
NewExistanceHandler returns existence handler
func NewNegationHandler ¶ added in v1.1.0
func NewNegationHandler(anchor string, pattern interface{}, path string) ValidationHandler
NewNegationHandler returns instance of negation handler