kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/negotiate.go

type NegotiateError

func (e NegotiateError) Error() string {}

type clientNegotiator

func (n *clientNegotiator) Encoder(contentType string, params map[string]string) (Encoder, error) {}

func (n *clientNegotiator) Decoder(contentType string, params map[string]string) (Decoder, error) {}

func (n *clientNegotiator) StreamDecoder(contentType string, params map[string]string) (Decoder, Serializer, Framer, error) {}

// NewClientNegotiator will attempt to retrieve the appropriate encoder, decoder, or
// stream decoder for a given content type. Does not perform any conversion, but will
// encode the object to the desired group, version, and kind. Use when creating a client.
func NewClientNegotiator(serializer NegotiatedSerializer, gv schema.GroupVersion) ClientNegotiator {}

type simpleNegotiatedSerializer

func NewSimpleNegotiatedSerializer(info SerializerInfo) NegotiatedSerializer {}

func (n *simpleNegotiatedSerializer) SupportedMediaTypes() []SerializerInfo {}

func (n *simpleNegotiatedSerializer) EncoderForVersion(e Encoder, _ GroupVersioner) Encoder {}

func (n *simpleNegotiatedSerializer) DecoderToVersion(d Decoder, _gv GroupVersioner) Decoder {}