Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + var DefaultEndpointRestrictions = emptyEndpointRestrictions + func MediaTypesForSerializer(ns runtime.NegotiatedSerializer) (mediaTypes, streamMediaTypes []string) + func NegotiateInputSerializer(req *http.Request, ns runtime.NegotiatedSerializer) (runtime.SerializerInfo, error) + func NegotiateInputSerializerForMediaType(mediaType string, ns runtime.NegotiatedSerializer) (runtime.SerializerInfo, error) + func NegotiateOutputSerializer(req *http.Request, ns runtime.NegotiatedSerializer) (runtime.SerializerInfo, error) + func NegotiateOutputStreamSerializer(req *http.Request, ns runtime.NegotiatedSerializer) (runtime.SerializerInfo, error) + func NewNotAcceptableError(accepted []string) error + func NewUnsupportedMediaTypeError(accepted []string) error + type AcceptedMediaType struct + Serializer runtime.SerializerInfo + SubType string + Type string + func AcceptedMediaTypesForEndpoint(ns runtime.NegotiatedSerializer) []AcceptedMediaType + type EndpointRestrictions interface + AllowsConversion func(schema.GroupVersionKind) bool + AllowsServerVersion func(version string) bool + AllowsStreamSchema func(schema string) bool + type MediaTypeOptions struct + Accepted *AcceptedMediaType + Convert *schema.GroupVersionKind + Export bool + Pretty bool + Stream string + Unrecognized []string + UseServerVersion string + func NegotiateMediaTypeOptions(header string, accepted []AcceptedMediaType, endpoint EndpointRestrictions) (MediaTypeOptions, bool) + func NegotiateOutputMediaType(req *http.Request, ns runtime.NegotiatedSerializer, ...) (MediaTypeOptions, runtime.SerializerInfo, error)