Documentation ¶
Overview ¶
Package runtime defines some functions used to encode/decode object.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientNegotiator ¶
ClientNegotiator handles turning an HTTP content type into the appropriate encoder. Use NewClientNegotiator or NewVersionedClientNegotiator to create this interface from a NegotiatedSerializer.
func NewSimpleClientNegotiator ¶
func NewSimpleClientNegotiator() ClientNegotiator
NewSimpleClientNegotiator will negotiate for a single serializer. This should only be used for testing or when the caller is taking responsibility for setting the GVK on encoded objects.
type Encoder ¶
type Encoder interface { // Encode writes an object to a stream. Implementations may return errors if the versions are // incompatible, or if no conversion is defined. Encode(v interface{}) ([]byte, error) }
Encoder writes objects to a serialized form.
type NegotiateError ¶
NegotiateError is returned when a ClientNegotiator is unable to locate a serializer for the requested operation.
func (NegotiateError) Error ¶
func (e NegotiateError) Error() string
Click to show internal directories.
Click to hide internal directories.