Documentation
¶
Index ¶
- func Add(node, newNode *yaml.RNode) (err error)
- func BuildFilters(targetNode *yaml.RNode, pathSlice []string) ([]yaml.Filter, error)
- func CalcPath(path string, cType ChangeType) ([]string, string, error)
- func Delete(node *yaml.RNode, lastSegment string, filters []yaml.Filter) (err error)
- func SetNodeAtPath(rootNode *yaml.RNode, node *yaml.RNode, filters []yaml.Filter, ...) error
- func Update(node, newNode *yaml.RNode) (*yaml.RNode, error)
- type ChangeType
- type TransformTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFilters ¶
BuildFilters builds kyaml filters from a pathSlice
Types ¶
type ChangeType ¶
type ChangeType string
const ( ChangeTypeAdd ChangeType = "add" ChangeTypeUpdate ChangeType = "update" ChangeTypeDelete ChangeType = "delete" )
type TransformTarget ¶
func CreateTransformTarget ¶
func CreateTransformTarget(parent map[string]interface{}) (*TransformTarget, error)
func (*TransformTarget) ExecuteTransform ¶
func (t *TransformTarget) ExecuteTransform(path string, cType ChangeType, value string, valueMap map[string]interface{}) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.