yaml

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 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 added in v1.0.7

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

type NodeVisitor added in v1.0.7

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

type SchemaBuilder added in v1.0.7

type SchemaBuilder struct {
	Root *SchemaNode
}

func (*SchemaBuilder) OnVisit added in v1.0.7

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

type SchemaNode added in v1.0.7

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

func (*SchemaNode) Insert added in v1.0.7

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

type Yaml

type Yaml struct {
}

func (*Yaml) Marshal added in v1.0.2

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

func (*Yaml) Unmarshal added in v1.0.2

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

func (*Yaml) Walk added in v1.0.7

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