node

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MPL-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ExpandEnvironmentVariables

func ExpandEnvironmentVariables(s string, env map[string]string) string

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) DeepFindChild

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

func (*Node) GetExpandedStringValue

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

func (*Node) GetSliceOfNonEmptyStrings

func (node *Node) GetSliceOfNonEmptyStrings() ([]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

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