version

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 GetCodeVersionOKCode int = 200

GetCodeVersionOKCode is the HTTP code returned for type GetCodeVersionOK

View Source
const GetCodeVersionUnauthorizedCode int = 401

GetCodeVersionUnauthorizedCode is the HTTP code returned for type GetCodeVersionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCodeVersion

type GetCodeVersion struct {
	Context *middleware.Context
	Handler GetCodeVersionHandler
}

GetCodeVersion swagger:route GET /version/ version getCodeVersion

get the code version

func NewGetCodeVersion

func NewGetCodeVersion(ctx *middleware.Context, handler GetCodeVersionHandler) *GetCodeVersion

NewGetCodeVersion creates a new http.Handler for the get code version operation

func (*GetCodeVersion) ServeHTTP

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

type GetCodeVersionHandler

type GetCodeVersionHandler interface {
	Handle(GetCodeVersionParams) middleware.Responder
}

GetCodeVersionHandler interface for that can handle valid get code version params

type GetCodeVersionHandlerFunc

type GetCodeVersionHandlerFunc func(GetCodeVersionParams) middleware.Responder

GetCodeVersionHandlerFunc turns a function with the right signature into a get code version handler

func (GetCodeVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetCodeVersionOK

type GetCodeVersionOK struct {

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

GetCodeVersionOK OK

swagger:response getCodeVersionOK

func NewGetCodeVersionOK

func NewGetCodeVersionOK() *GetCodeVersionOK

NewGetCodeVersionOK creates GetCodeVersionOK with default headers values

func (*GetCodeVersionOK) SetPayload

SetPayload sets the payload to the get code version o k response

func (*GetCodeVersionOK) WithPayload

WithPayload adds the payload to the get code version o k response

func (*GetCodeVersionOK) WriteResponse

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

WriteResponse to the client

type GetCodeVersionParams

type GetCodeVersionParams struct {

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

GetCodeVersionParams contains all the bound params for the get code version operation typically these are obtained from a http.Request

swagger:parameters getCodeVersion

func NewGetCodeVersionParams

func NewGetCodeVersionParams() GetCodeVersionParams

NewGetCodeVersionParams creates a new GetCodeVersionParams object no default values defined in spec.

func (*GetCodeVersionParams) BindRequest

func (o *GetCodeVersionParams) 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 NewGetCodeVersionParams() beforehand.

type GetCodeVersionUnauthorized

type GetCodeVersionUnauthorized struct {
}

GetCodeVersionUnauthorized Unauthorized

swagger:response getCodeVersionUnauthorized

func NewGetCodeVersionUnauthorized

func NewGetCodeVersionUnauthorized() *GetCodeVersionUnauthorized

NewGetCodeVersionUnauthorized creates GetCodeVersionUnauthorized with default headers values

func (*GetCodeVersionUnauthorized) WriteResponse

func (o *GetCodeVersionUnauthorized) 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