# README
k8s.io/apimachinery/pkg/runtime
# Functions
CheckCodec makes sure that the codec can encode objects like internalType, decode all of the external types listed, and also decode them into the given object.
No description provided by the author
No description provided by the author
Decode is a convenience wrapper for decoding data into an Object.
DecodeInto performs a Decode into the provided object.
DecodeList alters the list in place, attempting to decode any objects found in the list that have the Unknown type.
Encode is a convenience wrapper for encoding to a []byte from an Encoder.
EncodeList ensures that each object in an array is converted to a Unknown{} in serialized form.
EncodeOrDie is a version of Encode which will panic instead of returning an error.
EnforcePtr ensures that obj is a pointer of some sort.
Field puts the value of fieldName, which must be a member of v, into dest, which must be a variable to which this field's value can be assigned.
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.
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 'Version' field.
IsNotRegisteredError returns true if the error indicates the provided object or input data is not registered.
IsStrictDecodingError returns true if the error indicates that the provided object strictness violations.
No description provided by the author
NewClientNegotiator will attempt to retrieve the appropriate encoder, decoder, or stream decoder for a given content type.
NewCodec creates a Codec from an Encoder and Decoder.
NewEncodable creates an object that will be encoded with the provided codec on demand.
NewEncodableList creates an object that will be encoded with the provided codec on demand.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewParameterCodec creates a ParameterCodec capable of transforming url values into versioned objects and back.
No description provided by the author
No description provided by the author
NewStrictDecodingError creates a new strictDecodingError object.
SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot include media-type parameters), or the first info with an empty media type, or false if no type matches.
SetField puts the value of src, into fieldName, which must be a member of v.
SetZeroValue would set the object of objPtr to zero value of its type.
# Constants
APIVersionInternal may be used if you are registering a type that should not be considered stable or serialized - it is a convention only and has no special behavior in this package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultFramer is valid for any stream that can read objects serially without any separation in the stream.
# Structs
NegotiateError is returned when a ClientNegotiator is unable to locate a serializer for the requested operation.
NoopDecoder converts an Encoder to a Serializer or Codec for code that expects them but only uses encoding.
NoopEncoder converts an Decoder to a Serializer or Codec for code that expects them but only uses decoding.
No description provided by the author
RawExtension is used to hold extensions in external versions.
SerializerInfo contains information about a specific serialization format.
StreamSerializerInfo contains information about a specific stream serialization format.
TypeMeta is shared by all top level objects.
Unknown allows api objects with unknown types to be passed-through.
WithoutVersionDecoder clears the group version kind of a deserialized object.
WithVersionEncoder serializes an object and ensures the GVK is set.
# Interfaces
CacheableObject allows an object to cache its different serializations to avoid performing the same serialization multiple times.
ClientNegotiator handles turning an HTTP content type into the appropriate encoder.
Decoder attempts to load an object from data.
Encoder writes objects to a serialized form.
Framer is a factory for creating readers and writers that obey a particular framing pattern.
NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers for multiple supported media types.
NestedObjectDecoder is an optional interface that objects may implement to be given an opportunity to decode any nested Objects / RawExtensions during serialization.
NestedObjectEncoder is an optional interface that objects may implement to be given an opportunity to encode any nested Objects / RawExtensions during serialization.
Object interface must be supported by all API types registered with Scheme.
ObjectConvertor converts an object to a different version.
No description provided by the author
No description provided by the author
ParameterCodec defines methods for serializing and deserializing API objects to url.Values and performing any necessary conversion.
Serializer is the core interface for transforming objects into a serialized format and back.
StorageSerializer is an interface used for obtaining encoders, decoders, and serializers that can read and write data at rest.
Unstructured objects store values as map[string]interface{}, with only values that can be serialized to JSON allowed.
No description provided by the author
# Type aliases
Codec is a Serializer that deals with the details of versioning objects.
Identifier represents an identifier.