Documentation ¶
Index ¶
- Variables
- func Decode(data []byte, defaultReadVersion *schema.GroupVersionKind) (runtime.Object, *schema.GroupVersionKind, error)
- func ToMediaTypeWithVersion(obj runtime.Object, mediaType string, gv runtime.GroupVersioner) ([]byte, error)
- func ToVersionedJSON(obj runtime.Object) ([]byte, error)
- func ToVersionedJSONWithVersion(obj runtime.Object, version runtime.GroupVersioner) ([]byte, error)
- func ToVersionedYaml(obj runtime.Object) ([]byte, error)
- func ToVersionedYamlWithVersion(obj runtime.Object, version runtime.GroupVersioner) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) ParameterCodec = runtime.NewParameterCodec(Scheme) )
Functions ¶
func Decode ¶ added in v1.15.1
func Decode(data []byte, defaultReadVersion *schema.GroupVersionKind) (runtime.Object, *schema.GroupVersionKind, error)
Decode decodes the specified data, with the specified default version
func ToMediaTypeWithVersion ¶ added in v1.23.0
func ToMediaTypeWithVersion(obj runtime.Object, mediaType string, gv runtime.GroupVersioner) ([]byte, error)
ToMediaTypeWithVersion encodes the object to the specified mediaType, in a specified API version
func ToVersionedJSON ¶
ToVersionedJSON encodes the object to JSON
func ToVersionedJSONWithVersion ¶
ToVersionedJSONWithVersion encodes the object to JSON, in a specified API version
func ToVersionedYaml ¶
ToVersionedYaml encodes the object to YAML
func ToVersionedYamlWithVersion ¶
ToVersionedYamlWithVersion encodes the object to YAML, in a specified API version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.