serializer

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNegotiatedSerializer

func NewNegotiatedSerializer() runtime.NegotiatedSerializer

NewUnstructuredNegotiatedSerializer returns a simple, negotiated serializer

Types

type AdapterDecoder

type AdapterDecoder struct {
	runtime.Decoder
}

func (*AdapterDecoder) Decode

sometimes

type SetVersionEncoder

type SetVersionEncoder struct {
	Version runtime.GroupVersioner
	// contains filtered or unexported fields
}

SetVersionEncoder set the obj's gvk before encode if embed a WithKindGroupVersioner

func (*SetVersionEncoder) Encode

func (s *SetVersionEncoder) Encode(obj runtime.Object, w io.Writer) error

func (*SetVersionEncoder) Identifier

func (s *SetVersionEncoder) Identifier() runtime.Identifier

type WithKindGroupVersioner

type WithKindGroupVersioner struct {
	// contains filtered or unexported fields
}

WithKindGroupVersioner always return embedded gvk when we call KindForGroupVersionKinds

func NewWithKindGroupVersioner

func NewWithKindGroupVersioner(gvk schema.GroupVersionKind) *WithKindGroupVersioner

func (*WithKindGroupVersioner) Identifier

func (s *WithKindGroupVersioner) Identifier() string

func (*WithKindGroupVersioner) KindForGroupVersionKinds

func (s *WithKindGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (target schema.GroupVersionKind, ok bool)

type WithoutConversionCodecFactory

type WithoutConversionCodecFactory struct {
	// contains filtered or unexported fields
}

func (WithoutConversionCodecFactory) DecoderToVersion

DecoderToVersion do nothing but return decoder

func (WithoutConversionCodecFactory) EncoderForVersion

EncoderForVersion return an encoder that set the obj's GVK before encode

func (WithoutConversionCodecFactory) SupportedMediaTypes

func (f WithoutConversionCodecFactory) SupportedMediaTypes() []runtime.SerializerInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL