anchor

package
v1.1.6-rc2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnchorsResourcesFromMap added in v1.1.0

func GetAnchorsResourcesFromMap(patternMap map[string]interface{}) (map[string]interface{}, map[string]interface{})

GetAnchorsResourcesFromMap returns map of anchors

func IsAddingAnchor

func IsAddingAnchor(key string) bool

IsAddingAnchor checks for addition anchor

func IsConditionAnchor

func IsConditionAnchor(str string) bool

IsConditionAnchor checks for condition anchor

func IsEqualityAnchor

func IsEqualityAnchor(str string) bool

IsEqualityAnchor checks for equality anchor

func IsExistenceAnchor added in v1.1.3

func IsExistenceAnchor(str string) bool

IsExistenceAnchor checks for existence anchor

func IsNegationAnchor

func IsNegationAnchor(str string) bool

IsNegationAnchor checks for negation anchor

Types

type ConditionAnchorHandler added in v1.1.0

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

ConditionAnchorHandler provides handler for condition anchor

func (ConditionAnchorHandler) Handle added in v1.1.0

func (ch ConditionAnchorHandler) Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)

Handle processed condition anchor

type DefaultHandler added in v1.1.0

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

DefaultHandler provides handler for non anchor element

func (DefaultHandler) Handle added in v1.1.0

func (dh DefaultHandler) Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)

Handle process 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

func (EqualityHandler) Handle added in v1.1.0

func (eh EqualityHandler) Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)

Handle processed condition anchor

type ExistenceHandler added in v1.1.3

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

ExistenceHandler provides handlers to process exitence anchor handler

func (ExistenceHandler) Handle added in v1.1.3

func (eh ExistenceHandler) Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)

Handle processes the existence anchor handler

type IsAnchor

type IsAnchor func(str string) bool

IsAnchor is a function 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

func (NegationHandler) Handle added in v1.1.0

func (nh NegationHandler) Handle(handler resourceElementHandler, resourceMap map[string]interface{}, originPattern interface{}) (string, error)

Handle process negation handler

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 NewExistenceHandler added in v1.1.3

func NewExistenceHandler(anchor string, pattern interface{}, path string) ValidationHandler

NewExistenceHandler 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

Jump to

Keyboard shortcuts

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