Documentation ¶
Index ¶
- Variables
- type YamlNode
- func (n *YamlNode) ChangeKey(oldKeyName, newKeyName string, newValue YamlNode) error
- func (n *YamlNode) ChangeTreeTag(newTag string)
- func (n YamlNode) KeyLineCol(source io.ReadSeeker) (int, int, string)
- func (n YamlNode) KeyValueMap() (map[string]astnode.AstNode, bool)
- func (n YamlNode) LiteralValue() interface{}
- func (n YamlNode) SliceChild(index int) (astnode.AstNode, bool)
- func (n YamlNode) Tag() string
- func (n YamlNode) ValueLineCol(source io.ReadSeeker) (int, int, string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type YamlNode ¶
func (*YamlNode) ChangeKey ¶
ChangeKey replaces the oldkey with a new key/value pair. Useful for patching up a tree parsed from yaml but then used for validating an ignition structure
func (*YamlNode) ChangeTreeTag ¶
ChangeTreeTag changes the value Tag() returns to newTag
func (YamlNode) KeyLineCol ¶
func (YamlNode) LiteralValue ¶
func (n YamlNode) LiteralValue() interface{}
func (YamlNode) ValueLineCol ¶
Click to show internal directories.
Click to hide internal directories.