package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Functions
MediaTypesForSerializer returns a list of media and stream media types for the server.
NegotiateInputSerializer returns the input serializer for the provided request.
NegotiateInputSerializerForMediaType returns the appropriate serializer for the given media type or an error.
NegotiateMediaTypeOptions returns the most appropriate content type given the accept header and a list of alternatives along with the accepted media type parameters.
NegotiateOutputMediaType negotiates the output structured media type and a serializer, or returns an error.
NegotiateOutputMediaTypeStream returns a stream serializer for the given request.
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.
NewNotAcceptableError returns an error of NotAcceptable which contains specified string.
NewUnsupportedMediaTypeError returns an error of UnsupportedMediaType which contains specified string.
# Variables
DefaultEndpointRestrictions is the default EndpointRestrictions which allows content-type negotiation to verify server support for specific options.
# Structs
MediaTypeOptions describes information for a given media type that may alter the server response.
# Interfaces
EndpointRestrictions is an interface that allows content-type negotiation to verify server support for specific options.