metaonly

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 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 {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.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() schema.ObjectKind

func (MetadataOnlyObject) String

func (metaOnly MetadataOnlyObject) String() string

String converts a MetadataOnlyObject to a human-readable string.

type MetadataOnlyObjectList

type MetadataOnlyObjectList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.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() schema.ObjectKind

Jump to

Keyboard shortcuts

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