package
1.2.0-alpha.8
Repository: https://github.com/codeb2cc/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package protobuf implements ProtoBuf serialization and deserialization.
No description provided by the author

# 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.
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.
No description provided by the author
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.
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.
No description provided by the author
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.
NewCodec creates a Codec from an Encoder and Decoder.
No description provided by the author
No description provided by the author
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
IsMissingVersion returns true if the error indicates that the provided object is missing a 'Versioj' field.
NewNotRegisteredErr is exposed for testing.
NewParameterCodec creates a ParameterCodec capable of transforming url values into versioned objects and back.
NewScheme creates a new Scheme.
No description provided by the author
ParseDocumentationFrom gets all types' documentation and returns them as an array.
UseOrCreateObject returns obj if the canonical ObjectKind returned by the provided typer matches gvk, or invokes the ObjectCreator to instantiate a new gvk.
VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that are missing of documentation.
WriteSwaggerDocFunc writes a declaration of a function as a string.

# 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.

# 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

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.
Pair of strings.
RawExtension is used to hold extensions in external versions.
Scheme defines methods for serializing and deserializing API objects, a type registry for converting group, version, and kind information to and from Go schemas, and mappings between Go schemas of different versions.
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.
UnstructuredList allows lists that do not have Golang structs registered to be manipulated generically.
VersionedObjects is used by Decoders to give callers a way to access all versions of an object during the decoding process.

# Interfaces

No description provided by the author
No description provided by the author
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).
No description provided by the author
NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers for multiple supported media types.
All API types registered with Scheme must support the Object interface.
ObjectConvertor converts an object to a different version.
ObjectCopier duplicates an object.
ObjectCreater contains methods for instantiating an object by kind and version.
ObjectTyper contains methods for extracting the APIVersion and Kind of objects.
No description provided by the author
ParameterCodec defines methods for serializing and deserializing API objects to url.Values and performing any necessary conversion.
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.
Serializer is the core interface for transforming objects into a serialized format and back.
Typer retrieves information about an object's group, version, and kind.

# Type aliases

Codec is a Serializer that deals with the details of versioning objects.
Function to convert a field selector to internal representation.
KubeTypes is an array to represent all available types in a parsed file.
MultiObjectTyper returns the types of objects across multiple schemes in order.