Documentation ¶
Index ¶
Constants ¶
const GetCodeVersionOKCode int = 200
GetCodeVersionOKCode is the HTTP code returned for type GetCodeVersionOK
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 ¶
func (fn GetCodeVersionHandlerFunc) Handle(params GetCodeVersionParams) middleware.Responder
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 ¶
func (o *GetCodeVersionOK) SetPayload(payload *models.IoK8sApimachineryPkgVersionInfo)
SetPayload sets the payload to the get code version o k response
func (*GetCodeVersionOK) WithPayload ¶
func (o *GetCodeVersionOK) WithPayload(payload *models.IoK8sApimachineryPkgVersionInfo) *GetCodeVersionOK
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 ¶
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