yaml

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ancestor

type Ancestor struct {
	Node  *yaml.Node
	Token string
}

type NodeVisitor

type NodeVisitor func(node *yaml.Node, ancestors []Ancestor) error

type SchemaBuilder

type SchemaBuilder struct {
	Root *SchemaNode
}

func (*SchemaBuilder) OnVisit

func (s *SchemaBuilder) OnVisit(node *yaml.Node, ancestors []Ancestor) error

type SchemaNode

type SchemaNode struct {
	Kind     yaml.Kind
	Contents map[string]*SchemaNode
}

func (*SchemaNode) Insert

func (n *SchemaNode) Insert(tokens []string, kind yaml.Kind) error

type Yaml

type Yaml struct {
}

func (*Yaml) Marshal

func (l *Yaml) Marshal(i interface{}) (b []byte, err error)

func (*Yaml) Unmarshal

func (l *Yaml) Unmarshal(bytes []byte, i interface{}) (err error)

func (*Yaml) Walk

func (l *Yaml) Walk(n *yaml.Node, visitor NodeVisitor) error

type YamlAccess

type YamlAccess interface {
	Unmarshal(bytes []byte, i interface{}) error
	Marshal(i interface{}) ([]byte, error)
	Walk(n *yaml.Node, visitor NodeVisitor) error
}

Jump to

Keyboard shortcuts

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