Documentation
¶
Index ¶
- Variables
- func IsNodeError(err error) bool
- func NewNodeError(node *Node, err error) error
- type DotPath
- type Feature
- type Loader
- type Node
- func MergeNodes(nodes ...*Node) (*Node, error)
- func NewMappingNode(m map[string]*Node, options ...NodeOption) *Node
- func NewNode(node *yaml.Node, options ...NodeOption) *Node
- func NewScalarNode(value string, options ...NodeOption) *Node
- func NewSequenceNode(values []*Node, options ...NodeOption) *Node
- func PackNodeInNestedKeys(node *Node, keys ...string) *Node
- func (n *Node) Anchor() string
- func (n *Node) BoolValue() (bool, error)
- func (n *Node) Column() int
- func (n *Node) Filepath() string
- func (n *Node) FootComment() string
- func (n *Node) GetDeep(path string) (*Node, error)
- func (n *Node) GetMappingChild(key string) (*Node, error)
- func (n *Node) GetSequenceChild(index int) (*Node, error)
- func (n *Node) HeadComment() string
- func (n *Node) Keypath() string
- func (n *Node) Kind() yaml.Kind
- func (n *Node) Line() int
- func (n *Node) LineComment() string
- func (n *Node) MarshalYAML() (interface{}, error)
- func (n *Node) RawValue() string
- func (n *Node) Style() yaml.Style
- func (n *Node) Tag() string
- func (n *Node) ToYAMLNode() *yaml.Node
- func (n *Node) UnmarshalYAML(value *yaml.Node) error
- func (n *Node) Value() string
- type NodeOption
- type ResolveFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsNodeError ¶
func NewNodeError ¶
Types ¶
type DotPath ¶
func ParseDotPath ¶
type Feature ¶
type Feature interface { Name() string Resolve(ctx context.Context, loader *Loader, node *Node) (*Node, error) }
func FeatureFunc ¶
func FeatureFunc(name string, resolve ResolveFunc) Feature
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) WithFeatures ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func MergeNodes ¶
func NewMappingNode ¶
func NewMappingNode(m map[string]*Node, options ...NodeOption) *Node
func NewNode ¶
func NewNode(node *yaml.Node, options ...NodeOption) *Node
func NewScalarNode ¶
func NewScalarNode(value string, options ...NodeOption) *Node
func NewSequenceNode ¶
func NewSequenceNode(values []*Node, options ...NodeOption) *Node
func PackNodeInNestedKeys ¶
func (*Node) FootComment ¶
func (*Node) HeadComment ¶
func (*Node) LineComment ¶
func (*Node) MarshalYAML ¶
func (*Node) ToYAMLNode ¶
func (n *Node) ToYAMLNode() *yaml.Node
func (*Node) UnmarshalYAML ¶
type NodeOption ¶
type NodeOption interface {
// contains filtered or unexported methods
}
func NodeFilepath ¶
func NodeFilepath(path string) NodeOption
func NodeMappingKey ¶
func NodeMappingKey(key string) NodeOption
func NodeParent ¶
func NodeParent(parent *Node) NodeOption
func NodeSequenceIndex ¶
func NodeSequenceIndex(index int) NodeOption
Source Files
¶
Click to show internal directories.
Click to hide internal directories.