mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update kubernetes dep to 1.24.0
As kubernetes 1.24.0 is released, updating kubernetes dependencies to 1.24.0 updates: #3086 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
fc1529f268
commit
c4f79d455f
37
vendor/k8s.io/apimachinery/pkg/runtime/interfaces.go
generated
vendored
37
vendor/k8s.io/apimachinery/pkg/runtime/interfaces.go
generated
vendored
@ -69,6 +69,24 @@ type Encoder interface {
|
||||
Identifier() Identifier
|
||||
}
|
||||
|
||||
// MemoryAllocator is responsible for allocating memory.
|
||||
// By encapsulating memory allocation into its own interface, we can reuse the memory
|
||||
// across many operations in places we know it can significantly improve the performance.
|
||||
type MemoryAllocator interface {
|
||||
// Allocate reserves memory for n bytes.
|
||||
// Note that implementations of this method are not required to zero the returned array.
|
||||
// It is the caller's responsibility to clean the memory if needed.
|
||||
Allocate(n uint64) []byte
|
||||
}
|
||||
|
||||
// EncoderWithAllocator serializes objects in a way that allows callers to manage any additional memory allocations.
|
||||
type EncoderWithAllocator interface {
|
||||
Encoder
|
||||
// EncodeWithAllocator writes an object to a stream as Encode does.
|
||||
// In addition, it allows for providing a memory allocator for efficient memory usage during object serialization
|
||||
EncodeWithAllocator(obj Object, w io.Writer, memAlloc MemoryAllocator) error
|
||||
}
|
||||
|
||||
// Decoder attempts to load an object from data.
|
||||
type Decoder interface {
|
||||
// Decode attempts to deserialize the provided data using either the innate typing of the scheme or the
|
||||
@ -153,7 +171,7 @@ type NegotiatedSerializer interface {
|
||||
// EncoderForVersion returns an encoder that ensures objects being written to the provided
|
||||
// serializer are in the provided group version.
|
||||
EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder
|
||||
// DecoderForVersion returns a decoder that ensures objects being read by the provided
|
||||
// DecoderToVersion returns a decoder that ensures objects being read by the provided
|
||||
// serializer are in the provided group version by default.
|
||||
DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder
|
||||
}
|
||||
@ -207,6 +225,12 @@ type NestedObjectEncoder interface {
|
||||
|
||||
// NestedObjectDecoder is an optional interface that objects may implement to be given
|
||||
// an opportunity to decode any nested Objects / RawExtensions during serialization.
|
||||
// It is possible for DecodeNestedObjects to return a non-nil error but for the decoding
|
||||
// to have succeeded in the case of strict decoding errors (e.g. unknown/duplicate fields).
|
||||
// As such it is important for callers of DecodeNestedObjects to check to confirm whether
|
||||
// an error is a runtime.StrictDecodingError before short circuiting.
|
||||
// Similarly, implementations of DecodeNestedObjects should ensure that a runtime.StrictDecodingError
|
||||
// is only returned when the rest of decoding has succeeded.
|
||||
type NestedObjectDecoder interface {
|
||||
DecodeNestedObjects(d Decoder) error
|
||||
}
|
||||
@ -284,14 +308,11 @@ type ResourceVersioner interface {
|
||||
ResourceVersion(obj Object) (string, error)
|
||||
}
|
||||
|
||||
// SelfLinker provides methods for setting and retrieving the SelfLink field of an API object.
|
||||
type SelfLinker interface {
|
||||
SetSelfLink(obj Object, selfLink string) error
|
||||
SelfLink(obj Object) (string, error)
|
||||
|
||||
// Knowing Name is sometimes necessary to use a SelfLinker.
|
||||
// Namer provides methods for retrieving name and namespace of an API object.
|
||||
type Namer interface {
|
||||
// Name returns the name of a given object.
|
||||
Name(obj Object) (string, error)
|
||||
// Knowing Namespace is sometimes necessary to use a SelfLinker
|
||||
// Namespace returns the name of a given object.
|
||||
Namespace(obj Object) (string, error)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user