common

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorKey

type AnchorKey struct {

	// AnchorError - used in validate to break execution of the recursion when if condition fails
	AnchorError error
	// contains filtered or unexported fields
}

AnchorKey - contains map of anchors

func NewAnchorMap

func NewAnchorMap() *AnchorKey

NewAnchorMap -initialize anchorMap

func (*AnchorKey) CheckAnchorInResource

func (ac *AnchorKey) CheckAnchorInResource(pattern interface{}, resource interface{})

CheckAnchorInResource Check if condition anchor key has values

func (*AnchorKey) IsAnchorError

func (ac *AnchorKey) IsAnchorError() bool

IsAnchorError - if any of the anchor key doesn't exists in the resource then it will return true if any of (key)=false then return IsAnchorError() as true if all the keys exists in the pattern exists in resource then return IsAnchorError() as false

Jump to

Keyboard shortcuts

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