Documentation ¶
Index ¶
- func CoalesceValues(base, override map[string]interface{}) map[string]interface{}
- func MergeYAML(base, override []byte) (map[string]interface{}, error)
- func NewQuery(key, query string) (*templater.TemplateReaderQuery, error)
- func QueryValues(values map[string]interface{}, queries []*templater.TemplateReaderQuery) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoalesceValues ¶
CoalesceValues replaces arrays and scalar values, merges maps
func NewQuery ¶
func NewQuery(key, query string) (*templater.TemplateReaderQuery, error)
NewQuery constructs a templater.TemplateReaderQuery by parsing the jsonpath query string
func QueryValues ¶
func QueryValues( values map[string]interface{}, queries []*templater.TemplateReaderQuery, ) (map[string]interface{}, error)
QueryValues iterates through a map[string]interface{} and executes a query, returning a map of the query name to the returned data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.