package codec

import "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/codec"

Index

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

func NewYAMLEncoder(groupName string) (runtime.Encoder, error)

NewYAMLEncoder generates a new runtime.Encoder that encodes objects to YAML.

Source Files

codec.go

Version
v1.24.7
Published
Oct 12, 2022
Platform
js/wasm
Imports
11 packages
Last checked
1 minute ago

Tools for package owners.