yaml

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer struct {
	// contains filtered or unexported fields
}

Serializer converts between raw multi-resource yaml manifests and slices of runtime.Object.

func NewSerializer

func NewSerializer() *Serializer

NewSerializer creates a new *Serializer.

func (*Serializer) Decode

func (s *Serializer) Decode(raw []byte) ([]runtime.Object, error)

Decode decodes a multi-resource yaml into a slice of runtime.Object. The resulting objects are of type *unstructured.Unstructured.

func (*Serializer) Encode

func (s *Serializer) Encode(objs []runtime.Object) ([]byte, error)

Encode encodes a slice of runtime.Object to a multi-resource yaml.

Jump to

Keyboard shortcuts

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