kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/errors.go

type errNotAcceptable

// NewNotAcceptableError returns an error of NotAcceptable which contains specified string
func NewNotAcceptableError(accepted []string) error {}

func (e errNotAcceptable) Error() string {}

func (e errNotAcceptable) Status() metav1.Status {}

type errNotAcceptableConversion

// NewNotAcceptableConversionError returns an error indicating that the desired
// API transformation to the target group version kind string is not accepted and
// only the listed mime types are allowed. This is temporary while Table does not
// yet support protobuf encoding.
func NewNotAcceptableConversionError(target string, accepted []string) error {}

func (e errNotAcceptableConversion) Error() string {}

func (e errNotAcceptableConversion) Status() metav1.Status {}

type errUnsupportedMediaType

// NewUnsupportedMediaTypeError returns an error of UnsupportedMediaType which contains specified string
func NewUnsupportedMediaTypeError(accepted []string) error {}

func (e errUnsupportedMediaType) Error() string {}

func (e errUnsupportedMediaType) Status() metav1.Status {}