Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEventDecoder ¶
type APIEventDecoder struct {
// contains filtered or unexported fields
}
APIEventDecoder implements the watch.Decoder interface for io.ReadClosers that have contents which consist of a series of api.WatchEvent objects encoded via JSON. It will decode any object which is registered to convert to api.WatchEvent via api.Scheme
func NewAPIEventDecoder ¶
func NewAPIEventDecoder(stream io.ReadCloser) *APIEventDecoder
NewAPIEventDecoder creates an APIEventDecoder for the given stream.
func (*APIEventDecoder) Close ¶
func (d *APIEventDecoder) Close()
Close closes the underlying stream.
Click to show internal directories.
Click to hide internal directories.