yaml

package
Version: v0.21.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 93

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMetaFactory = SimpleMetaFactory{}

DefaultMetaFactory is a default factory for versioning objects in JSON or YAML. The object in memory and in the default serialization will use the "kind" and "apiVersion" fields.

Functions

func NewDecodingSerializer

func NewDecodingSerializer(jsonSerializer runtime.Serializer) runtime.Serializer

NewDecodingSerializer adds YAML decoding support to a serializer that supports JSON.

Types

type SimpleMetaFactory added in v0.19.0

type SimpleMetaFactory struct{}

SimpleMetaFactory provides default methods for retrieving the type and version of objects that are identified with an "apiVersion" and "kind" fields in their JSON serialization. It may be parameterized with the names of the fields in memory, or an optional list of base structs to search for those fields in memory.

func (SimpleMetaFactory) Interpret added in v0.19.0

func (SimpleMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error)

Interpret will return the APIVersion and Kind of the JSON wire-format encoding of an object, or an error.

Source Files

Jump to

Keyboard shortcuts

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