package codec
import "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/codec"
Index ¶
- func DecodeKubeletConfiguration(kubeletCodecs *serializer.CodecFactory, data []byte) (*kubeletconfig.KubeletConfiguration, error)
- func EncodeKubeletConfig(internal *kubeletconfig.KubeletConfiguration, targetVersion schema.GroupVersion) ([]byte, error)
- func NewKubeletconfigYAMLEncoder(targetVersion schema.GroupVersion) (runtime.Encoder, error)
- func NewYAMLEncoder(groupName string) (runtime.Encoder, error)
Functions ¶
func DecodeKubeletConfiguration ¶
func DecodeKubeletConfiguration(kubeletCodecs *serializer.CodecFactory, data []byte) (*kubeletconfig.KubeletConfiguration, error)
DecodeKubeletConfiguration decodes a serialized KubeletConfiguration to the internal type.
func EncodeKubeletConfig ¶
func EncodeKubeletConfig(internal *kubeletconfig.KubeletConfiguration, targetVersion schema.GroupVersion) ([]byte, error)
EncodeKubeletConfig encodes an internal KubeletConfiguration to an external YAML representation.
func NewKubeletconfigYAMLEncoder ¶
func NewKubeletconfigYAMLEncoder(targetVersion schema.GroupVersion) (runtime.Encoder, error)
NewKubeletconfigYAMLEncoder returns an encoder that can write objects in the kubeletconfig API group to YAML.
func NewYAMLEncoder ¶
NewYAMLEncoder generates a new runtime.Encoder that encodes objects to YAML.
Source Files ¶
codec.go
- Version
- v1.20.0-alpha.3
- Published
- Oct 20, 2020
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 10 minutes ago –
Tools for package owners.