Add type alias for DirectCodecFactory -> WithoutConversionCodecFactory

This commit is contained in:
Jordan Liggitt 2019-04-08 10:52:04 -04:00
parent 20cece67b5
commit 104746f977
2 changed files with 8 additions and 2 deletions

View File

@ -256,3 +256,7 @@ func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decod
Decoder: serializer,
}
}
// DirectCodecFactory was renamed to WithoutConversionCodecFactory in 1.15.
// TODO: remove in 1.16.
type DirectCodecFactory = WithoutConversionCodecFactory

View File

@ -234,8 +234,10 @@ func (c *codec) Encode(obj runtime.Object, w io.Writer) error {
return err
}
// DirectEncoder was movend and renamed in 1.15 and will be removed in 1.16.
// DirectEncoder was moved and renamed to runtime.WithVersionEncoder in 1.15.
// TODO: remove in 1.16.
type DirectEncoder = runtime.WithVersionEncoder
// DirectDecoder was movend and renamed in 1.15 and will be removed in 1.16.
// DirectDecoder was moved and renamed to runtime.WithoutVersionDecoder in 1.15.
// TODO: remove in 1.16.
type DirectDecoder = runtime.WithoutVersionDecoder