apis

package
v0.0.0-...-1e5aeb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GetAPIVersionsOKCode int = 200

GetAPIVersionsOKCode is the HTTP code returned for type GetAPIVersionsOK

View Source
const GetAPIVersionsUnauthorizedCode int = 401

GetAPIVersionsUnauthorizedCode is the HTTP code returned for type GetAPIVersionsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAPIVersions

type GetAPIVersions struct {
	Context *middleware.Context
	Handler GetAPIVersionsHandler
}

GetAPIVersions swagger:route GET /apis/ apis getApiVersions

get available API versions

func NewGetAPIVersions

func NewGetAPIVersions(ctx *middleware.Context, handler GetAPIVersionsHandler) *GetAPIVersions

NewGetAPIVersions creates a new http.Handler for the get API versions operation

func (*GetAPIVersions) ServeHTTP

func (o *GetAPIVersions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAPIVersionsHandler

type GetAPIVersionsHandler interface {
	Handle(GetAPIVersionsParams) middleware.Responder
}

GetAPIVersionsHandler interface for that can handle valid get API versions params

type GetAPIVersionsHandlerFunc

type GetAPIVersionsHandlerFunc func(GetAPIVersionsParams) middleware.Responder

GetAPIVersionsHandlerFunc turns a function with the right signature into a get API versions handler

func (GetAPIVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAPIVersionsOK

type GetAPIVersionsOK struct {

	/*
	  In: Body
	*/
	Payload *models.IoK8sApimachineryPkgApisMetaV1APIGroupList `json:"body,omitempty"`
}

GetAPIVersionsOK OK

swagger:response getApiVersionsOK

func NewGetAPIVersionsOK

func NewGetAPIVersionsOK() *GetAPIVersionsOK

NewGetAPIVersionsOK creates GetAPIVersionsOK with default headers values

func (*GetAPIVersionsOK) SetPayload

SetPayload sets the payload to the get Api versions o k response

func (*GetAPIVersionsOK) WithPayload

WithPayload adds the payload to the get Api versions o k response

func (*GetAPIVersionsOK) WriteResponse

func (o *GetAPIVersionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAPIVersionsParams

type GetAPIVersionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetAPIVersionsParams contains all the bound params for the get API versions operation typically these are obtained from a http.Request

swagger:parameters getAPIVersions

func NewGetAPIVersionsParams

func NewGetAPIVersionsParams() GetAPIVersionsParams

NewGetAPIVersionsParams creates a new GetAPIVersionsParams object no default values defined in spec.

func (*GetAPIVersionsParams) BindRequest

func (o *GetAPIVersionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetAPIVersionsParams() beforehand.

type GetAPIVersionsUnauthorized

type GetAPIVersionsUnauthorized struct {
}

GetAPIVersionsUnauthorized Unauthorized

swagger:response getApiVersionsUnauthorized

func NewGetAPIVersionsUnauthorized

func NewGetAPIVersionsUnauthorized() *GetAPIVersionsUnauthorized

NewGetAPIVersionsUnauthorized creates GetAPIVersionsUnauthorized with default headers values

func (*GetAPIVersionsUnauthorized) WriteResponse

func (o *GetAPIVersionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL