Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapValue ¶
func GetMapValue(node *yaml.Node, key string) (*yaml.Node, *yaml.Node)
GetMapValue returns the key and value nodes from node that matches key. if node is not a mapping node or the key does not exist, GetMapValue returns nil
func GetPath ¶
func GetPath(node *yaml.Node, path []interface{}) (*yaml.Node, error)
GetPath returns the node by descending into map and array nodes for each element of path
func MatchAll ¶
func MatchAll(node *yaml.Node, path string) <-chan *yaml.Node
MatchAll returns all yaml nodes that match the provided path. The path is a `/`-separated string that describes a path into the template's tree. Wildcard elements (which can be map keys or array indices) are represented by a `*`. Matching an arbitrary number (including zero) of descendents can be done with `**`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.