encoding

package
v0.3.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(from runtime.Object, to runtime.Object) error

Convert converts the from object into the to object

func ConvertList

func ConvertList(fromList runtime.Object, toList runtime.Object, new rest.Storage) error

ConvertList converts the objects from the from list and puts them into the to list

Types

type Decoder

type Decoder interface {
	Decode(data []byte) (runtime.Object, error)
	EncodeYAML(obj runtime.Object) ([]byte, error)
	EncodeJSON(obj runtime.Object) ([]byte, error)
}

Decoder is the standard interface for decoding and encoding resources

func NewDecoder

func NewDecoder(scheme *runtime.Scheme, strict bool) Decoder

NewDecoder creates a new universal decoder

Jump to

Keyboard shortcuts

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