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
Click to show internal directories.
Click to hide internal directories.