Versions in this module Expand all Collapse all v3 v3.3.2 Jun 11, 2020 Changes in this version + func ColorizeAndPrint(bytes []byte, writer io.Writer) error + func DebugNode(value *yaml.Node) + func KindString(kind yaml.Kind) string + type DataNavigator interface + Traverse func(value *yaml.Node, path []interface{}) error + func NewDataNavigator(NavigationStrategy NavigationStrategy) DataNavigator + type Encoder interface + Encode func(node *yaml.Node) error + func NewJsonEncoder(destination io.Writer, prettyPrint bool, indent int) Encoder + func NewYamlEncoder(destination io.Writer, indent int, colorise bool) Encoder + type NavigationStrategy interface + AutoCreateMap func(nodeContext NodeContext) bool + DebugVisitedNodes func() + FollowAlias func(nodeContext NodeContext) bool + GetPathParser func() PathParser + GetVisitedNodes func() []*NodeContext + ShouldDeeplyTraverse func(nodeContext NodeContext) bool + ShouldTraverse func(nodeContext NodeContext, nodeKey string) bool + Visit func(nodeContext NodeContext) error + func DeleteNavigationStrategy(pathElementToDelete interface{}) NavigationStrategy + func FilterMatchingNodesNavigationStrategy(value string) NavigationStrategy + func ReadNavigationStrategy(deeplyTraverseArrays bool) NavigationStrategy + func UpdateNavigationStrategy(updateCommand UpdateCommand, autoCreate bool) NavigationStrategy + type NavigationStrategyImpl struct + func (ns *NavigationStrategyImpl) AutoCreateMap(nodeContext NodeContext) bool + func (ns *NavigationStrategyImpl) DebugVisitedNodes() + func (ns *NavigationStrategyImpl) FollowAlias(nodeContext NodeContext) bool + func (ns *NavigationStrategyImpl) GetPathParser() PathParser + func (ns *NavigationStrategyImpl) GetVisitedNodes() []*NodeContext + func (ns *NavigationStrategyImpl) ShouldDeeplyTraverse(nodeContext NodeContext) bool + func (ns *NavigationStrategyImpl) ShouldTraverse(nodeContext NodeContext, nodeKey string) bool + func (ns *NavigationStrategyImpl) Visit(nodeContext NodeContext) error + type NodeContext struct + Head interface{} + Node *yaml.Node + PathStack []interface{} + Tail []interface{} + func NewNodeContext(node *yaml.Node, head interface{}, tail []interface{}, pathStack []interface{}) NodeContext + type PathParser interface + IsPathExpression func(pathElement string) bool + MatchesNextPathElement func(nodeContext NodeContext, nodeKey string) bool + ParsePath func(path string) []interface{} + func NewPathParser() PathParser + type UpdateCommand struct + Command string + Overwrite bool + Path string + Value *yaml.Node + type ValueParser interface + Parse func(argument string, customTag string) *yaml.Node + func NewValueParser() ValueParser + type YqLib interface + Get func(rootNode *yaml.Node, path string, deeplyTraverseArrays bool) ([]*NodeContext, error) + MergePathStackToString func(pathStack []interface{}, appendArrays bool) string + New func(path string) yaml.Node + PathStackToString func(pathStack []interface{}) string + Update func(rootNode *yaml.Node, updateCommand UpdateCommand, autoCreate bool) error + func NewYqLib() YqLib