# Functions
CodecFor returns a Codec that invokes Encode with the provided version.
DecodeList alters the list in place, attempting to decode any objects found in the list that have the runtime.Unknown type.
EncodeOrDie is a version of Encode which will panic instead of returning an error.
ExtractList returns obj's Items element as an array of runtime.Objects.
fieldPtr puts the address of fieldName, which must be a member of v, into dest, which must be an address of a variable to which this field's address can be assigned.
GetItemsPtr returns a pointer to the list object's Items member.
IsListType returns true if the provided Object has a slice called Items.
IsMissingKind returns true if the error indicates that the provided object is missing a 'Kind' field.
IsMissingVersion returns true if the error indicates that the provided object is missing a 'Versioj' field.
IsNotRegisteredError returns true if the error indicates the provided object or input data is not registered.
JSONKeyMapper uses the struct tags on a conversion to determine the key value for the other side.
No description provided by the author
No description provided by the author
NewScheme creates a new Scheme.
SetList sets the given list object's Items member have the elements given in objects.
YAMLDecoder adds YAML decoding support to a codec that supports JSON.
# Variables
DefaultStringConversions are helpers for converting []string and string to real values.
UnstructuredJSONScheme is capable of converting JSON data into the Unstructured type, which can be used for generic access to objects without a predefined scheme.
# Structs
EmbeddedObject has appropriate encoder and decoder functions, such that on the wire, it's stored as a []byte, but in memory, the contained object is accessible as an Object via the Get() function.
PluginBase is like TypeMeta, but it's intended for plugin objects that won't ever be encoded except while embedded in other objects.
RawExtension is used with EmbeddedObject to do a two-phase encoding of extension objects.
Scheme defines methods for serializing and deserializing API objects.
TypeMeta is shared by all top level objects.
Unknown allows api objects with unknown types to be passed-through.
Unstructured allows objects that do not have Golang structs registered to be manipulated generically.
# Interfaces
Codec defines methods for serializing and deserializing API objects.
No description provided by the author
Decoder defines methods for deserializing API objects into a given type.
TODO(wojtek-t): As suggested in #8320, we should consider the strategy to first do the shallow copy and then recurse into things that need a deep copy (maps, pointers, slices).
Encoder defines methods for serializing API objects into bytes.
All api types must support the Object interface.
ObjectCodec represents the common mechanisms for converting to and from a particular binary representation of an object.
ObjectConvertor converts an object to a different version.
ObjectCopier duplicates an object.
ObjectCreater contains methods for instantiating an object by kind and version.
ObjectDecoder is a convenience interface for identifying serialized versions of objects and transforming them into Objects.
ObjectEncoder turns an object into a byte array.
ObjectScheme represents common conversions between formal external API versions and the internal Go structs.
ObjectTyper contains methods for extracting the APIVersion and Kind of objects.
ResourceVersioner provides methods for setting and retrieving the resource version from an API object.
SelfLinker provides methods for setting and retrieving the SelfLink field of an API object.
# Type aliases
Function to convert a field selector to internal representation.
MultiObjectTyper returns the types of objects across multiple schemes in order.