Documentation ¶
Overview ¶
Package streaming implements encoder and decoder for streams of runtime.Objects over io.Writer/Readers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrObjectTooLarge = fmt.Errorf("object to decode was longer than maximum allowed size")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder interface { // Decode will return io.EOF when no more objects are available. Decode(defaults *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) }
Decoder is a runtime.Decoder from a stream.
type Encoder ¶
type Encoder interface { // Encode will write the provided object to the stream or return an error. It obeys the same // contract as runtime.Encoder. Encode(obj runtime.Object, overrides ...unversioned.GroupVersion) error }
Encoder is a runtime.Encoder on a stream.
Click to show internal directories.
Click to hide internal directories.