package
0.1.35
Repository: https://github.com/kong/go-apiops.git
Documentation: pkg.go.dev

# Functions

Append adds the given values to the end of the targetArray.
AppendSlice appends all entries in a slice to the end of the targetArray.
CheckType returns an error if the given node was not of the expected type.
CheckTypes returns an error if the given node was not one of the expected types.
CopyNode creates a deep copy of the given node.
FindFieldKeyIndex returns the index of the Node that contains the object-Key in the targets Content array.
FindFieldValueIndex returns the index of the Node that contains the object-Value in the targets Content array.
FromObject converts the given map[string]interface{} to an yaml node (map).
GetFieldValue returns the value of the given key in the targetObject.
NewArray creates a new array node.
NewObject creates a new object node.
NewSelectorSet compiles the given selectors into a list of yaml nodes.
NewString creates a new string node.
RemoveField removes the given key and its value from the targetObject if it exists.
RemoveFieldByIdx removes the key (by its index) and its value from the targetObject.
Search returns a YamlArrayIterator function that can be called repeatedly to find the next matching node in the targetArray.
SetFieldValue sets/overwrites the value of the given key in the targetObject to the given value.
ToArray converts the given yaml node to a []interface{}.
ToObject converts the given yaml node to a map[string]interface{}.

# Constants

yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.
yaml data types including the scalar types.

# Structs

Represents a set of JSONpath selectors.

# Type aliases

yamlType which can also represent the different scalar types.
represents a set of yaml nodes.
YamlArrayIterator is a type of function returned by Search.
YamlArrayMatcher is a type of function passed to Search.