Documentation ¶
Index ¶
- Variables
- func ReversePath(path []int) []int
- type ListValue
- type MapValue
- type Node
- func (node *Node) CopyWithParent(parent *Node) *Node
- func (node *Node) Deduplicate()
- func (node *Node) DeepCopy() *Node
- func (node *Node) DeepCopyWithReplacements(target *Node, replacements []*Node) *Node
- func (node *Node) DeepFindChild(name string) *Node
- func (node *Node) DeepFindCollectible(name string) *Node
- func (node *Node) FindChild(name string) *Node
- func (node *Node) FindParent(predicate Predicate) *Node
- func (node *Node) FlattenedValue() (string, error)
- func (node *Node) GetBoolValue(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)
- func (node *Node) GetExpandedStringValue(env map[string]string) (string, error)
- func (node *Node) GetMapOrListOfMaps() (map[string]string, error)
- func (node *Node) GetPath(path []int) *Node
- func (node *Node) GetScript() ([]string, error)
- func (node *Node) GetSliceOfExpandedStrings(env map[string]string) ([]string, error)
- func (node *Node) GetSliceOfNonEmptyStrings() ([]string, error)
- func (node *Node) GetSliceOfStrings() ([]string, error)
- func (node *Node) GetStringMapping() (map[string]string, error)
- func (node *Node) GetStringValue() (string, error)
- func (node *Node) HasChild(name string) bool
- func (node *Node) MarshalYAML() (*yaml.Node, error)
- func (node *Node) MergeFrom(other *Node)
- func (node *Node) MergeListOfMapsToSingleMap()
- func (node *Node) MergeMapsOrOverwrite(with *Node)
- func (node *Node) ParserError(format string, args ...interface{}) error
- func (node *Node) PathUpwardsUpto(upto *Node) []int
- func (node *Node) ReplaceWith(with []*Node)
- func (node *Node) String() string
- type Predicate
- type ScalarValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedToMarshal = errors.New("failed to marshal to YAML")
Functions ¶
func ReversePath ¶ added in v0.31.1
Types ¶
type Node ¶
type Node struct { Name string Value interface{} Parent *Node Children []*Node Line int Column int }
func NewFromText ¶ added in v0.32.0
func (*Node) CopyWithParent ¶ added in v0.27.1
func (*Node) Deduplicate ¶ added in v0.23.1
func (node *Node) Deduplicate()
func (*Node) DeepCopyWithReplacements ¶ added in v0.31.1
func (*Node) DeepFindChild ¶
DeepFindChild recursively traverses node's children and returns the first node found named name.
func (*Node) DeepFindCollectible ¶ added in v0.23.1
func (*Node) FindParent ¶ added in v0.31.1
func (*Node) FlattenedValue ¶ added in v0.32.0
func (*Node) GetBoolValue ¶ added in v0.9.0
func (node *Node) GetBoolValue(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)
func (*Node) GetExpandedStringValue ¶
func (*Node) GetMapOrListOfMaps ¶ added in v0.36.0
func (*Node) GetSliceOfExpandedStrings ¶ added in v0.9.0
func (*Node) GetSliceOfNonEmptyStrings ¶
func (*Node) GetSliceOfStrings ¶ added in v0.9.0
func (*Node) GetStringValue ¶
func (*Node) MarshalYAML ¶ added in v0.31.1
func (*Node) MergeListOfMapsToSingleMap ¶ added in v0.28.1
func (node *Node) MergeListOfMapsToSingleMap()
func (*Node) MergeMapsOrOverwrite ¶ added in v0.32.0
func (*Node) ParserError ¶ added in v0.33.0
func (*Node) PathUpwardsUpto ¶ added in v0.31.1
func (*Node) ReplaceWith ¶ added in v0.31.1
type ScalarValue ¶
type ScalarValue struct {
Value string
}
Click to show internal directories.
Click to hide internal directories.