mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-08 14:29:45 +00:00
update decoder to use GroupVersion
This commit is contained in:
@@ -19,6 +19,8 @@ package runtime
|
||||
import (
|
||||
"io"
|
||||
"net/url"
|
||||
|
||||
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||
)
|
||||
|
||||
// Codec defines methods for serializing and deserializing API objects.
|
||||
@@ -31,10 +33,10 @@ type Codec interface {
|
||||
type Decoder interface {
|
||||
Decode(data []byte) (Object, error)
|
||||
// TODO: Remove this method?
|
||||
DecodeToVersion(data []byte, version string) (Object, error)
|
||||
DecodeToVersion(data []byte, groupVersion unversioned.GroupVersion) (Object, error)
|
||||
DecodeInto(data []byte, obj Object) error
|
||||
// TODO: Remove this method?
|
||||
DecodeIntoWithSpecifiedVersionKind(data []byte, obj Object, kind, version string) error
|
||||
DecodeIntoWithSpecifiedVersionKind(data []byte, obj Object, groupVersionKind unversioned.GroupVersionKind) error
|
||||
|
||||
DecodeParametersInto(parameters url.Values, obj Object) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user