node

package
v0.30.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeConversionFailed = errors.New("node conversion failed")

Functions

This section is empty.

Types

type ListValue

type ListValue struct{}

type MapValue

type MapValue struct{}

type Node

type Node struct {
	Name     string
	Value    interface{}
	Parent   *Node
	Children []*Node
}

func NewFromSlice

func NewFromSlice(slice yaml.MapSlice) (*Node, error)

func (*Node) CopyWithParent added in v0.27.1

func (node *Node) CopyWithParent(parent *Node) *Node

func (*Node) Deduplicate added in v0.23.1

func (node *Node) Deduplicate()

func (*Node) DeepFindCollectible added in v0.23.1

func (node *Node) DeepFindCollectible(name string) *Node

func (*Node) FindChild added in v0.15.0

func (node *Node) FindChild(name string) *Node

func (*Node) GetBoolValue added in v0.9.0

func (node *Node) GetBoolValue(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)

func (*Node) GetEnvironment added in v0.11.0

func (node *Node) GetEnvironment() (map[string]string, error)

func (*Node) GetExpandedStringValue

func (node *Node) GetExpandedStringValue(env map[string]string) (string, error)

func (*Node) GetScript added in v0.10.0

func (node *Node) GetScript() ([]string, error)

func (*Node) GetSliceOfExpandedStrings added in v0.9.0

func (node *Node) GetSliceOfExpandedStrings(env map[string]string) ([]string, error)

func (*Node) GetSliceOfNonEmptyStrings

func (node *Node) GetSliceOfNonEmptyStrings() ([]string, error)

func (*Node) GetSliceOfStrings added in v0.9.0

func (node *Node) GetSliceOfStrings() ([]string, error)

func (*Node) GetStringMapping

func (node *Node) GetStringMapping() (map[string]string, error)

func (*Node) GetStringValue

func (node *Node) GetStringValue() (string, error)

func (*Node) HasChild

func (node *Node) HasChild(name string) bool

func (*Node) MergeFrom added in v0.23.1

func (node *Node) MergeFrom(other *Node)

func (*Node) MergeListOfMapsToSingleMap added in v0.28.1

func (node *Node) MergeListOfMapsToSingleMap()

func (*Node) String added in v0.27.1

func (node *Node) String() string

type ScalarValue

type ScalarValue struct {
	Value string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL