metaonly

package
v1.5.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetadataCodecFactory

func NewMetadataCodecFactory() serializer.CodecFactory

Types

type MetadataOnlyObject

type MetadataOnlyObject struct {
	unversioned.TypeMeta `json:",inline"`
	// +optional
	v1.ObjectMeta `json:"metadata,omitempty"`
}

MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of JSON data. TODO: enable meta-only decoding for protobuf.

func (*MetadataOnlyObject) CodecDecodeSelf

func (x *MetadataOnlyObject) CodecDecodeSelf(d *codec1978.Decoder)

func (*MetadataOnlyObject) CodecEncodeSelf

func (x *MetadataOnlyObject) CodecEncodeSelf(e *codec1978.Encoder)

func (*MetadataOnlyObject) GetObjectKind

func (obj *MetadataOnlyObject) GetObjectKind() unversioned.ObjectKind

func (MetadataOnlyObject) String

func (metaOnly MetadataOnlyObject) String() string

String converts a MetadataOnlyObject to a human-readable string.

type MetadataOnlyObjectList

type MetadataOnlyObjectList struct {
	unversioned.TypeMeta `json:",inline"`
	// +optional
	unversioned.ListMeta `json:"metadata,omitempty"`

	Items []MetadataOnlyObject `json:"items"`
}

MetadataOnlyObjectList allows decoding from JSON data only the typemeta and metadata of a list, and those of the enclosing objects. TODO: enable meta-only decoding for protobuf.

func (*MetadataOnlyObjectList) CodecDecodeSelf

func (x *MetadataOnlyObjectList) CodecDecodeSelf(d *codec1978.Decoder)

func (*MetadataOnlyObjectList) CodecEncodeSelf

func (x *MetadataOnlyObjectList) CodecEncodeSelf(e *codec1978.Encoder)

func (*MetadataOnlyObjectList) GetObjectKind

func (obj *MetadataOnlyObjectList) GetObjectKind() unversioned.ObjectKind

Jump to

Keyboard shortcuts

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