Documentation ¶
Index ¶
- func EnableCrossGroupDecoding(d runtime.Decoder, sourceGroup, destGroup string) error
- func EnableCrossGroupEncoding(e runtime.Encoder, sourceGroup, destGroup string) error
- func NewCodec(encoder runtime.Encoder, decoder runtime.Decoder, ...) runtime.Codec
- func NewCodecForScheme(scheme *runtime.Scheme, encoder runtime.Encoder, decoder runtime.Decoder, ...) runtime.Codec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableCrossGroupDecoding ¶
EnableCrossGroupDecoding modifies the given decoder in place, if it is a codec from this package. It allows objects from one group to be auto-decoded into another group. 'destGroup' must already exist in the codec. TODO: this is an encapsulation violation and should be refactored
func EnableCrossGroupEncoding ¶
EnableCrossGroupEncoding modifies the given encoder in place, if it is a codec from this package. It allows objects from one group to be auto-decoded into another group. 'destGroup' must already exist in the codec. TODO: this is an encapsulation violation and should be refactored
func NewCodec ¶
func NewCodec( encoder runtime.Encoder, decoder runtime.Decoder, convertor runtime.ObjectConvertor, creater runtime.ObjectCreater, copier runtime.ObjectCopier, typer runtime.ObjectTyper, encodeVersion []unversioned.GroupVersion, decodeVersion []unversioned.GroupVersion, ) runtime.Codec
NewCodec takes objects in their internal versions and converts them to external versions before serializing them. It assumes the serializer provided to it only deals with external versions. This class is also a serializer, but is generally used with a specific version.
func NewCodecForScheme ¶
func NewCodecForScheme( scheme *runtime.Scheme, encoder runtime.Encoder, decoder runtime.Decoder, encodeVersion []unversioned.GroupVersion, decodeVersion []unversioned.GroupVersion, ) runtime.Codec
NewCodecForScheme is a convenience method for callers that are using a scheme.
Types ¶
This section is empty.