metaonly

package
v1.4.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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"`
	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"`
	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