Documentation ¶
Index ¶
- func NewNegotiatedSerializer() runtime.NegotiatedSerializer
- type AdapterDecoder
- type SetVersionEncoder
- type WithKindGroupVersioner
- type WithoutConversionCodecFactory
- func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder
- func (f WithoutConversionCodecFactory) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder
- func (f WithoutConversionCodecFactory) SupportedMediaTypes() []runtime.SerializerInfo
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 ¶
func (*AdapterDecoder) Decode ¶
func (d *AdapterDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error)
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) 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 ¶
func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder
DecoderToVersion do nothing but return decoder
func (WithoutConversionCodecFactory) EncoderForVersion ¶
func (f WithoutConversionCodecFactory) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder
EncoderForVersion return an encoder that set the obj's GVK before encode
func (WithoutConversionCodecFactory) SupportedMediaTypes ¶
func (f WithoutConversionCodecFactory) SupportedMediaTypes() []runtime.SerializerInfo
Click to show internal directories.
Click to hide internal directories.