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.14.8
Published
Oct 12, 2019
Platform
js/wasm
Imports
8 packages
Last checked
17 seconds ago

Tools for package owners.