Documentation ¶
Index ¶
- Constants
- type Create
- type CreateBadRequest
- type CreateBadRequestBody
- type CreateForbidden
- type CreateForbiddenBody
- type CreateHandler
- type CreateHandlerFunc
- type CreateInternalServerError
- type CreateNotFound
- type CreateNotFoundBody
- type CreateOK
- type CreateParams
- type CreateURL
- func (o *CreateURL) Build() (*url.URL, error)
- func (o *CreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateURL) SetBasePath(bp string)
- func (o *CreateURL) String() string
- func (o *CreateURL) StringFull(scheme, host string) string
- func (o *CreateURL) WithBasePath(bp string) *CreateURL
- type CreateUnauthorized
- type Delete
- type DeleteBadRequest
- type DeleteBadRequestBody
- type DeleteForbidden
- type DeleteForbiddenBody
- type DeleteHandler
- type DeleteHandlerFunc
- type DeleteInternalServerError
- type DeleteNotFound
- type DeleteNotFoundBody
- type DeleteOK
- type DeleteParams
- type DeleteURL
- func (o *DeleteURL) Build() (*url.URL, error)
- func (o *DeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteURL) SetBasePath(bp string)
- func (o *DeleteURL) String() string
- func (o *DeleteURL) StringFull(scheme, host string) string
- func (o *DeleteURL) WithBasePath(bp string) *DeleteURL
- type DeleteUnauthorized
- type Get
- type GetBadRequest
- type GetBadRequestBody
- type GetForbidden
- type GetForbiddenBody
- type GetHandler
- type GetHandlerFunc
- type GetInternalServerError
- type GetNotFound
- type GetNotFoundBody
- type GetOK
- type GetParams
- type GetURL
- func (o *GetURL) Build() (*url.URL, error)
- func (o *GetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetURL) Must(u *url.URL, err error) *url.URL
- func (o *GetURL) SetBasePath(bp string)
- func (o *GetURL) String() string
- func (o *GetURL) StringFull(scheme, host string) string
- func (o *GetURL) WithBasePath(bp string) *GetURL
- type GetUnauthorized
- type List
- type ListBadRequest
- type ListBadRequestBody
- type ListForbidden
- type ListForbiddenBody
- type ListHandler
- type ListHandlerFunc
- type ListInternalServerError
- type ListNotFound
- type ListNotFoundBody
- type ListOK
- type ListParams
- type ListURL
- func (o *ListURL) Build() (*url.URL, error)
- func (o *ListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListURL) Must(u *url.URL, err error) *url.URL
- func (o *ListURL) SetBasePath(bp string)
- func (o *ListURL) String() string
- func (o *ListURL) StringFull(scheme, host string) string
- func (o *ListURL) WithBasePath(bp string) *ListURL
- type ListUnauthorized
- type Modify
- type ModifyBadRequest
- type ModifyBadRequestBody
- type ModifyForbidden
- type ModifyForbiddenBody
- type ModifyHandler
- type ModifyHandlerFunc
- type ModifyInternalServerError
- type ModifyNotFound
- type ModifyNotFoundBody
- type ModifyOK
- type ModifyParams
- type ModifyURL
- func (o *ModifyURL) Build() (*url.URL, error)
- func (o *ModifyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ModifyURL) Must(u *url.URL, err error) *url.URL
- func (o *ModifyURL) SetBasePath(bp string)
- func (o *ModifyURL) String() string
- func (o *ModifyURL) StringFull(scheme, host string) string
- func (o *ModifyURL) WithBasePath(bp string) *ModifyURL
- type ModifyUnauthorized
- type Start
- type StartBadRequest
- type StartBadRequestBody
- type StartForbidden
- type StartForbiddenBody
- type StartHandler
- type StartHandlerFunc
- type StartInternalServerError
- type StartNotFound
- type StartNotFoundBody
- type StartOK
- type StartParams
- type StartURL
- func (o *StartURL) Build() (*url.URL, error)
- func (o *StartURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StartURL) Must(u *url.URL, err error) *url.URL
- func (o *StartURL) SetBasePath(bp string)
- func (o *StartURL) String() string
- func (o *StartURL) StringFull(scheme, host string) string
- func (o *StartURL) WithBasePath(bp string) *StartURL
- type StartUnauthorized
- type Stop
- type StopBadRequest
- type StopBadRequestBody
- type StopForbidden
- type StopForbiddenBody
- type StopHandler
- type StopHandlerFunc
- type StopInternalServerError
- type StopNotFound
- type StopNotFoundBody
- type StopOK
- type StopParams
- type StopURL
- func (o *StopURL) Build() (*url.URL, error)
- func (o *StopURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StopURL) Must(u *url.URL, err error) *url.URL
- func (o *StopURL) SetBasePath(bp string)
- func (o *StopURL) String() string
- func (o *StopURL) StringFull(scheme, host string) string
- func (o *StopURL) WithBasePath(bp string) *StopURL
- type StopUnauthorized
Constants ¶
const CreateBadRequestCode int = 400
CreateBadRequestCode is the HTTP code returned for type CreateBadRequest
const CreateForbiddenCode int = 403
CreateForbiddenCode is the HTTP code returned for type CreateForbidden
const CreateInternalServerErrorCode int = 500
CreateInternalServerErrorCode is the HTTP code returned for type CreateInternalServerError
const CreateNotFoundCode int = 404
CreateNotFoundCode is the HTTP code returned for type CreateNotFound
const CreateOKCode int = 200
CreateOKCode is the HTTP code returned for type CreateOK
CreateUnauthorizedCode is the HTTP code returned for type CreateUnauthorized
const DeleteBadRequestCode int = 400
DeleteBadRequestCode is the HTTP code returned for type DeleteBadRequest
const DeleteForbiddenCode int = 403
DeleteForbiddenCode is the HTTP code returned for type DeleteForbidden
const DeleteInternalServerErrorCode int = 500
DeleteInternalServerErrorCode is the HTTP code returned for type DeleteInternalServerError
const DeleteNotFoundCode int = 404
DeleteNotFoundCode is the HTTP code returned for type DeleteNotFound
const DeleteOKCode int = 200
DeleteOKCode is the HTTP code returned for type DeleteOK
DeleteUnauthorizedCode is the HTTP code returned for type DeleteUnauthorized
const GetBadRequestCode int = 400
GetBadRequestCode is the HTTP code returned for type GetBadRequest
const GetForbiddenCode int = 403
GetForbiddenCode is the HTTP code returned for type GetForbidden
const GetInternalServerErrorCode int = 500
GetInternalServerErrorCode is the HTTP code returned for type GetInternalServerError
const GetNotFoundCode int = 404
GetNotFoundCode is the HTTP code returned for type GetNotFound
const GetOKCode int = 200
GetOKCode is the HTTP code returned for type GetOK
GetUnauthorizedCode is the HTTP code returned for type GetUnauthorized
const ListBadRequestCode int = 400
ListBadRequestCode is the HTTP code returned for type ListBadRequest
const ListForbiddenCode int = 403
ListForbiddenCode is the HTTP code returned for type ListForbidden
const ListInternalServerErrorCode int = 500
ListInternalServerErrorCode is the HTTP code returned for type ListInternalServerError
const ListNotFoundCode int = 404
ListNotFoundCode is the HTTP code returned for type ListNotFound
const ListOKCode int = 200
ListOKCode is the HTTP code returned for type ListOK
ListUnauthorizedCode is the HTTP code returned for type ListUnauthorized
const ModifyBadRequestCode int = 400
ModifyBadRequestCode is the HTTP code returned for type ModifyBadRequest
const ModifyForbiddenCode int = 403
ModifyForbiddenCode is the HTTP code returned for type ModifyForbidden
const ModifyInternalServerErrorCode int = 500
ModifyInternalServerErrorCode is the HTTP code returned for type ModifyInternalServerError
const ModifyNotFoundCode int = 404
ModifyNotFoundCode is the HTTP code returned for type ModifyNotFound
const ModifyOKCode int = 200
ModifyOKCode is the HTTP code returned for type ModifyOK
ModifyUnauthorizedCode is the HTTP code returned for type ModifyUnauthorized
const StartBadRequestCode int = 400
StartBadRequestCode is the HTTP code returned for type StartBadRequest
const StartForbiddenCode int = 403
StartForbiddenCode is the HTTP code returned for type StartForbidden
const StartInternalServerErrorCode int = 500
StartInternalServerErrorCode is the HTTP code returned for type StartInternalServerError
const StartNotFoundCode int = 404
StartNotFoundCode is the HTTP code returned for type StartNotFound
const StartOKCode int = 200
StartOKCode is the HTTP code returned for type StartOK
StartUnauthorizedCode is the HTTP code returned for type StartUnauthorized
const StopBadRequestCode int = 400
StopBadRequestCode is the HTTP code returned for type StopBadRequest
const StopForbiddenCode int = 403
StopForbiddenCode is the HTTP code returned for type StopForbidden
const StopInternalServerErrorCode int = 500
StopInternalServerErrorCode is the HTTP code returned for type StopInternalServerError
const StopNotFoundCode int = 404
StopNotFoundCode is the HTTP code returned for type StopNotFound
const StopOKCode int = 200
StopOKCode is the HTTP code returned for type StopOK
StopUnauthorizedCode is the HTTP code returned for type StopUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct { Context *middleware.Context Handler CreateHandler }
Create swagger:route POST /instances Instance create
Create Instance
func NewCreate ¶
func NewCreate(ctx *middleware.Context, handler CreateHandler) *Create
NewCreate creates a new http.Handler for the create operation
type CreateBadRequest ¶
type CreateBadRequest struct { /* In: Body */ Payload *CreateBadRequestBody `json:"body,omitempty"` }
CreateBadRequest create bad request
swagger:response createBadRequest
func NewCreateBadRequest ¶
func NewCreateBadRequest() *CreateBadRequest
NewCreateBadRequest creates CreateBadRequest with default headers values
func (*CreateBadRequest) SetPayload ¶
func (o *CreateBadRequest) SetPayload(payload *CreateBadRequestBody)
SetPayload sets the payload to the create bad request response
func (*CreateBadRequest) WithPayload ¶
func (o *CreateBadRequest) WithPayload(payload *CreateBadRequestBody) *CreateBadRequest
WithPayload adds the payload to the create bad request response
func (*CreateBadRequest) WriteResponse ¶
func (o *CreateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBadRequestBody ¶
type CreateBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
CreateBadRequestBody create bad request body
swagger:model CreateBadRequestBody
func (*CreateBadRequestBody) ContextValidate ¶
ContextValidate validates this create bad request body based on context it is used
func (*CreateBadRequestBody) MarshalBinary ¶
func (o *CreateBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBadRequestBody) UnmarshalBinary ¶
func (o *CreateBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateForbidden ¶
type CreateForbidden struct { /* In: Body */ Payload *CreateForbiddenBody `json:"body,omitempty"` }
CreateForbidden create forbidden
swagger:response createForbidden
func NewCreateForbidden ¶
func NewCreateForbidden() *CreateForbidden
NewCreateForbidden creates CreateForbidden with default headers values
func (*CreateForbidden) SetPayload ¶
func (o *CreateForbidden) SetPayload(payload *CreateForbiddenBody)
SetPayload sets the payload to the create forbidden response
func (*CreateForbidden) WithPayload ¶
func (o *CreateForbidden) WithPayload(payload *CreateForbiddenBody) *CreateForbidden
WithPayload adds the payload to the create forbidden response
func (*CreateForbidden) WriteResponse ¶
func (o *CreateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateForbiddenBody ¶
type CreateForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
CreateForbiddenBody create forbidden body
swagger:model CreateForbiddenBody
func (*CreateForbiddenBody) ContextValidate ¶
ContextValidate validates this create forbidden body based on context it is used
func (*CreateForbiddenBody) MarshalBinary ¶
func (o *CreateForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateForbiddenBody) UnmarshalBinary ¶
func (o *CreateForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateHandler ¶
type CreateHandler interface {
Handle(CreateParams) middleware.Responder
}
CreateHandler interface for that can handle valid create params
type CreateHandlerFunc ¶
type CreateHandlerFunc func(CreateParams) middleware.Responder
CreateHandlerFunc turns a function with the right signature into a create handler
func (CreateHandlerFunc) Handle ¶
func (fn CreateHandlerFunc) Handle(params CreateParams) middleware.Responder
Handle executing the request and returning a response
type CreateInternalServerError ¶
type CreateInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
CreateInternalServerError create internal server error
swagger:response createInternalServerError
func NewCreateInternalServerError ¶
func NewCreateInternalServerError() *CreateInternalServerError
NewCreateInternalServerError creates CreateInternalServerError with default headers values
func (*CreateInternalServerError) SetPayload ¶
func (o *CreateInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the create internal server error response
func (*CreateInternalServerError) WithPayload ¶
func (o *CreateInternalServerError) WithPayload(payload interface{}) *CreateInternalServerError
WithPayload adds the payload to the create internal server error response
func (*CreateInternalServerError) WriteResponse ¶
func (o *CreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateNotFound ¶
type CreateNotFound struct { /* In: Body */ Payload *CreateNotFoundBody `json:"body,omitempty"` }
CreateNotFound create not found
swagger:response createNotFound
func NewCreateNotFound ¶
func NewCreateNotFound() *CreateNotFound
NewCreateNotFound creates CreateNotFound with default headers values
func (*CreateNotFound) SetPayload ¶
func (o *CreateNotFound) SetPayload(payload *CreateNotFoundBody)
SetPayload sets the payload to the create not found response
func (*CreateNotFound) WithPayload ¶
func (o *CreateNotFound) WithPayload(payload *CreateNotFoundBody) *CreateNotFound
WithPayload adds the payload to the create not found response
func (*CreateNotFound) WriteResponse ¶
func (o *CreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateNotFoundBody ¶
type CreateNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
CreateNotFoundBody create not found body
swagger:model CreateNotFoundBody
func (*CreateNotFoundBody) ContextValidate ¶
ContextValidate validates this create not found body based on context it is used
func (*CreateNotFoundBody) MarshalBinary ¶
func (o *CreateNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateNotFoundBody) UnmarshalBinary ¶
func (o *CreateNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateOK ¶
CreateOK Create Instance succeeded
swagger:response createOK
func NewCreateOK ¶
func NewCreateOK() *CreateOK
NewCreateOK creates CreateOK with default headers values
func (*CreateOK) SetPayload ¶
SetPayload sets the payload to the create o k response
func (*CreateOK) WithPayload ¶
WithPayload adds the payload to the create o k response
func (*CreateOK) WriteResponse ¶
func (o *CreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateParams ¶
type CreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance config Required: true In: body */ Config *models.InstanceConfig }
CreateParams contains all the bound params for the create operation typically these are obtained from a http.Request
swagger:parameters create
func NewCreateParams ¶
func NewCreateParams() CreateParams
NewCreateParams creates a new CreateParams object
There are no default values defined in the spec.
func (*CreateParams) BindRequest ¶
func (o *CreateParams) 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 NewCreateParams() beforehand.
type CreateURL ¶
type CreateURL struct {
// contains filtered or unexported fields
}
CreateURL generates an URL for the create operation
func (*CreateURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*CreateURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CreateUnauthorized ¶
type CreateUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}CreateUnauthorized create unauthorized
swagger:response createUnauthorized
func NewCreateUnauthorized ¶
func NewCreateUnauthorized() *CreateUnauthorized
NewCreateUnauthorized creates CreateUnauthorized with default headers values
func (*CreateUnauthorized) SetPayload ¶
func (o *CreateUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the create unauthorized response
func (*CreateUnauthorized) WithPayload ¶
func (o *CreateUnauthorized) WithPayload(payload interface{}) *CreateUnauthorized
WithPayload adds the payload to the create unauthorized response
func (*CreateUnauthorized) WriteResponse ¶
func (o *CreateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Delete ¶
type Delete struct { Context *middleware.Context Handler DeleteHandler }
Delete swagger:route DELETE /instances/{name} Instance delete
Delete Instance
func NewDelete ¶
func NewDelete(ctx *middleware.Context, handler DeleteHandler) *Delete
NewDelete creates a new http.Handler for the delete operation
type DeleteBadRequest ¶
type DeleteBadRequest struct { /* In: Body */ Payload *DeleteBadRequestBody `json:"body,omitempty"` }
DeleteBadRequest delete bad request
swagger:response deleteBadRequest
func NewDeleteBadRequest ¶
func NewDeleteBadRequest() *DeleteBadRequest
NewDeleteBadRequest creates DeleteBadRequest with default headers values
func (*DeleteBadRequest) SetPayload ¶
func (o *DeleteBadRequest) SetPayload(payload *DeleteBadRequestBody)
SetPayload sets the payload to the delete bad request response
func (*DeleteBadRequest) WithPayload ¶
func (o *DeleteBadRequest) WithPayload(payload *DeleteBadRequestBody) *DeleteBadRequest
WithPayload adds the payload to the delete bad request response
func (*DeleteBadRequest) WriteResponse ¶
func (o *DeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBadRequestBody ¶
type DeleteBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
DeleteBadRequestBody delete bad request body
swagger:model DeleteBadRequestBody
func (*DeleteBadRequestBody) ContextValidate ¶
ContextValidate validates this delete bad request body based on context it is used
func (*DeleteBadRequestBody) MarshalBinary ¶
func (o *DeleteBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBadRequestBody) UnmarshalBinary ¶
func (o *DeleteBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteForbidden ¶
type DeleteForbidden struct { /* In: Body */ Payload *DeleteForbiddenBody `json:"body,omitempty"` }
DeleteForbidden delete forbidden
swagger:response deleteForbidden
func NewDeleteForbidden ¶
func NewDeleteForbidden() *DeleteForbidden
NewDeleteForbidden creates DeleteForbidden with default headers values
func (*DeleteForbidden) SetPayload ¶
func (o *DeleteForbidden) SetPayload(payload *DeleteForbiddenBody)
SetPayload sets the payload to the delete forbidden response
func (*DeleteForbidden) WithPayload ¶
func (o *DeleteForbidden) WithPayload(payload *DeleteForbiddenBody) *DeleteForbidden
WithPayload adds the payload to the delete forbidden response
func (*DeleteForbidden) WriteResponse ¶
func (o *DeleteForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteForbiddenBody ¶
type DeleteForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
DeleteForbiddenBody delete forbidden body
swagger:model DeleteForbiddenBody
func (*DeleteForbiddenBody) ContextValidate ¶
ContextValidate validates this delete forbidden body based on context it is used
func (*DeleteForbiddenBody) MarshalBinary ¶
func (o *DeleteForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteForbiddenBody) UnmarshalBinary ¶
func (o *DeleteForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteHandler ¶
type DeleteHandler interface {
Handle(DeleteParams) middleware.Responder
}
DeleteHandler interface for that can handle valid delete params
type DeleteHandlerFunc ¶
type DeleteHandlerFunc func(DeleteParams) middleware.Responder
DeleteHandlerFunc turns a function with the right signature into a delete handler
func (DeleteHandlerFunc) Handle ¶
func (fn DeleteHandlerFunc) Handle(params DeleteParams) middleware.Responder
Handle executing the request and returning a response
type DeleteInternalServerError ¶
type DeleteInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
DeleteInternalServerError delete internal server error
swagger:response deleteInternalServerError
func NewDeleteInternalServerError ¶
func NewDeleteInternalServerError() *DeleteInternalServerError
NewDeleteInternalServerError creates DeleteInternalServerError with default headers values
func (*DeleteInternalServerError) SetPayload ¶
func (o *DeleteInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the delete internal server error response
func (*DeleteInternalServerError) WithPayload ¶
func (o *DeleteInternalServerError) WithPayload(payload interface{}) *DeleteInternalServerError
WithPayload adds the payload to the delete internal server error response
func (*DeleteInternalServerError) WriteResponse ¶
func (o *DeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteNotFound ¶
type DeleteNotFound struct { /* In: Body */ Payload *DeleteNotFoundBody `json:"body,omitempty"` }
DeleteNotFound delete not found
swagger:response deleteNotFound
func NewDeleteNotFound ¶
func NewDeleteNotFound() *DeleteNotFound
NewDeleteNotFound creates DeleteNotFound with default headers values
func (*DeleteNotFound) SetPayload ¶
func (o *DeleteNotFound) SetPayload(payload *DeleteNotFoundBody)
SetPayload sets the payload to the delete not found response
func (*DeleteNotFound) WithPayload ¶
func (o *DeleteNotFound) WithPayload(payload *DeleteNotFoundBody) *DeleteNotFound
WithPayload adds the payload to the delete not found response
func (*DeleteNotFound) WriteResponse ¶
func (o *DeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteNotFoundBody ¶
type DeleteNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
DeleteNotFoundBody delete not found body
swagger:model DeleteNotFoundBody
func (*DeleteNotFoundBody) ContextValidate ¶
ContextValidate validates this delete not found body based on context it is used
func (*DeleteNotFoundBody) MarshalBinary ¶
func (o *DeleteNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteNotFoundBody) UnmarshalBinary ¶
func (o *DeleteNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteOK ¶
type DeleteOK struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
DeleteOK Delete Instance succeeded
swagger:response deleteOK
func NewDeleteOK ¶
func NewDeleteOK() *DeleteOK
NewDeleteOK creates DeleteOK with default headers values
func (*DeleteOK) SetPayload ¶
func (o *DeleteOK) SetPayload(payload interface{})
SetPayload sets the payload to the delete o k response
func (*DeleteOK) WithPayload ¶
WithPayload adds the payload to the delete o k response
func (*DeleteOK) WriteResponse ¶
func (o *DeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteParams ¶
type DeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance name Required: true Pattern: ^[A-Za-z0-9\-_.]{1,32}$ In: path */ Name string }
DeleteParams contains all the bound params for the delete operation typically these are obtained from a http.Request
swagger:parameters delete
func NewDeleteParams ¶
func NewDeleteParams() DeleteParams
NewDeleteParams creates a new DeleteParams object
There are no default values defined in the spec.
func (*DeleteParams) BindRequest ¶
func (o *DeleteParams) 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 NewDeleteParams() beforehand.
type DeleteURL ¶
type DeleteURL struct { Name string // contains filtered or unexported fields }
DeleteURL generates an URL for the delete operation
func (*DeleteURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*DeleteURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteUnauthorized ¶
type DeleteUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}DeleteUnauthorized delete unauthorized
swagger:response deleteUnauthorized
func NewDeleteUnauthorized ¶
func NewDeleteUnauthorized() *DeleteUnauthorized
NewDeleteUnauthorized creates DeleteUnauthorized with default headers values
func (*DeleteUnauthorized) SetPayload ¶
func (o *DeleteUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the delete unauthorized response
func (*DeleteUnauthorized) WithPayload ¶
func (o *DeleteUnauthorized) WithPayload(payload interface{}) *DeleteUnauthorized
WithPayload adds the payload to the delete unauthorized response
func (*DeleteUnauthorized) WriteResponse ¶
func (o *DeleteUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Get ¶
type Get struct { Context *middleware.Context Handler GetHandler }
Get swagger:route GET /instances/{name} Instance get
Get Instance
func NewGet ¶
func NewGet(ctx *middleware.Context, handler GetHandler) *Get
NewGet creates a new http.Handler for the get operation
type GetBadRequest ¶
type GetBadRequest struct { /* In: Body */ Payload *GetBadRequestBody `json:"body,omitempty"` }
GetBadRequest get bad request
swagger:response getBadRequest
func NewGetBadRequest ¶
func NewGetBadRequest() *GetBadRequest
NewGetBadRequest creates GetBadRequest with default headers values
func (*GetBadRequest) SetPayload ¶
func (o *GetBadRequest) SetPayload(payload *GetBadRequestBody)
SetPayload sets the payload to the get bad request response
func (*GetBadRequest) WithPayload ¶
func (o *GetBadRequest) WithPayload(payload *GetBadRequestBody) *GetBadRequest
WithPayload adds the payload to the get bad request response
func (*GetBadRequest) WriteResponse ¶
func (o *GetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBadRequestBody ¶
type GetBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
GetBadRequestBody get bad request body
swagger:model GetBadRequestBody
func (*GetBadRequestBody) ContextValidate ¶
ContextValidate validates this get bad request body based on context it is used
func (*GetBadRequestBody) MarshalBinary ¶
func (o *GetBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBadRequestBody) UnmarshalBinary ¶
func (o *GetBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetForbidden ¶
type GetForbidden struct { /* In: Body */ Payload *GetForbiddenBody `json:"body,omitempty"` }
GetForbidden get forbidden
swagger:response getForbidden
func NewGetForbidden ¶
func NewGetForbidden() *GetForbidden
NewGetForbidden creates GetForbidden with default headers values
func (*GetForbidden) SetPayload ¶
func (o *GetForbidden) SetPayload(payload *GetForbiddenBody)
SetPayload sets the payload to the get forbidden response
func (*GetForbidden) WithPayload ¶
func (o *GetForbidden) WithPayload(payload *GetForbiddenBody) *GetForbidden
WithPayload adds the payload to the get forbidden response
func (*GetForbidden) WriteResponse ¶
func (o *GetForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetForbiddenBody ¶
type GetForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
GetForbiddenBody get forbidden body
swagger:model GetForbiddenBody
func (*GetForbiddenBody) ContextValidate ¶
ContextValidate validates this get forbidden body based on context it is used
func (*GetForbiddenBody) MarshalBinary ¶
func (o *GetForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetForbiddenBody) UnmarshalBinary ¶
func (o *GetForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHandler ¶
type GetHandler interface {
Handle(GetParams) middleware.Responder
}
GetHandler interface for that can handle valid get params
type GetHandlerFunc ¶
type GetHandlerFunc func(GetParams) middleware.Responder
GetHandlerFunc turns a function with the right signature into a get handler
func (GetHandlerFunc) Handle ¶
func (fn GetHandlerFunc) Handle(params GetParams) middleware.Responder
Handle executing the request and returning a response
type GetInternalServerError ¶
type GetInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
GetInternalServerError get internal server error
swagger:response getInternalServerError
func NewGetInternalServerError ¶
func NewGetInternalServerError() *GetInternalServerError
NewGetInternalServerError creates GetInternalServerError with default headers values
func (*GetInternalServerError) SetPayload ¶
func (o *GetInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the get internal server error response
func (*GetInternalServerError) WithPayload ¶
func (o *GetInternalServerError) WithPayload(payload interface{}) *GetInternalServerError
WithPayload adds the payload to the get internal server error response
func (*GetInternalServerError) WriteResponse ¶
func (o *GetInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetNotFound ¶
type GetNotFound struct { /* In: Body */ Payload *GetNotFoundBody `json:"body,omitempty"` }
GetNotFound get not found
swagger:response getNotFound
func NewGetNotFound ¶
func NewGetNotFound() *GetNotFound
NewGetNotFound creates GetNotFound with default headers values
func (*GetNotFound) SetPayload ¶
func (o *GetNotFound) SetPayload(payload *GetNotFoundBody)
SetPayload sets the payload to the get not found response
func (*GetNotFound) WithPayload ¶
func (o *GetNotFound) WithPayload(payload *GetNotFoundBody) *GetNotFound
WithPayload adds the payload to the get not found response
func (*GetNotFound) WriteResponse ¶
func (o *GetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetNotFoundBody ¶
type GetNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
GetNotFoundBody get not found body
swagger:model GetNotFoundBody
func (*GetNotFoundBody) ContextValidate ¶
ContextValidate validates this get not found body based on context it is used
func (*GetNotFoundBody) MarshalBinary ¶
func (o *GetNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetNotFoundBody) UnmarshalBinary ¶
func (o *GetNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetOK ¶
GetOK Get Instance succeeded
swagger:response getOK
func (*GetOK) SetPayload ¶
SetPayload sets the payload to the get o k response
func (*GetOK) WithPayload ¶
WithPayload adds the payload to the get o k response
func (*GetOK) WriteResponse ¶
func (o *GetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParams ¶
type GetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance name Required: true Pattern: ^[A-Za-z0-9\-_.]{1,32}$ In: path */ Name string }
GetParams contains all the bound params for the get operation typically these are obtained from a http.Request
swagger:parameters get
func NewGetParams ¶
func NewGetParams() GetParams
NewGetParams creates a new GetParams object
There are no default values defined in the spec.
func (*GetParams) BindRequest ¶
func (o *GetParams) 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 NewGetParams() beforehand.
type GetURL ¶
type GetURL struct { Name string // contains filtered or unexported fields }
GetURL generates an URL for the get operation
func (*GetURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUnauthorized ¶
type GetUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}GetUnauthorized get unauthorized
swagger:response getUnauthorized
func NewGetUnauthorized ¶
func NewGetUnauthorized() *GetUnauthorized
NewGetUnauthorized creates GetUnauthorized with default headers values
func (*GetUnauthorized) SetPayload ¶
func (o *GetUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the get unauthorized response
func (*GetUnauthorized) WithPayload ¶
func (o *GetUnauthorized) WithPayload(payload interface{}) *GetUnauthorized
WithPayload adds the payload to the get unauthorized response
func (*GetUnauthorized) WriteResponse ¶
func (o *GetUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type List ¶
type List struct { Context *middleware.Context Handler ListHandler }
List swagger:route GET /instances Instance list
List Instances
func NewList ¶
func NewList(ctx *middleware.Context, handler ListHandler) *List
NewList creates a new http.Handler for the list operation
type ListBadRequest ¶
type ListBadRequest struct { /* In: Body */ Payload *ListBadRequestBody `json:"body,omitempty"` }
ListBadRequest list bad request
swagger:response listBadRequest
func NewListBadRequest ¶
func NewListBadRequest() *ListBadRequest
NewListBadRequest creates ListBadRequest with default headers values
func (*ListBadRequest) SetPayload ¶
func (o *ListBadRequest) SetPayload(payload *ListBadRequestBody)
SetPayload sets the payload to the list bad request response
func (*ListBadRequest) WithPayload ¶
func (o *ListBadRequest) WithPayload(payload *ListBadRequestBody) *ListBadRequest
WithPayload adds the payload to the list bad request response
func (*ListBadRequest) WriteResponse ¶
func (o *ListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListBadRequestBody ¶
type ListBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
ListBadRequestBody list bad request body
swagger:model ListBadRequestBody
func (*ListBadRequestBody) ContextValidate ¶
ContextValidate validates this list bad request body based on context it is used
func (*ListBadRequestBody) MarshalBinary ¶
func (o *ListBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBadRequestBody) UnmarshalBinary ¶
func (o *ListBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListForbidden ¶
type ListForbidden struct { /* In: Body */ Payload *ListForbiddenBody `json:"body,omitempty"` }
ListForbidden list forbidden
swagger:response listForbidden
func NewListForbidden ¶
func NewListForbidden() *ListForbidden
NewListForbidden creates ListForbidden with default headers values
func (*ListForbidden) SetPayload ¶
func (o *ListForbidden) SetPayload(payload *ListForbiddenBody)
SetPayload sets the payload to the list forbidden response
func (*ListForbidden) WithPayload ¶
func (o *ListForbidden) WithPayload(payload *ListForbiddenBody) *ListForbidden
WithPayload adds the payload to the list forbidden response
func (*ListForbidden) WriteResponse ¶
func (o *ListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListForbiddenBody ¶
type ListForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
ListForbiddenBody list forbidden body
swagger:model ListForbiddenBody
func (*ListForbiddenBody) ContextValidate ¶
ContextValidate validates this list forbidden body based on context it is used
func (*ListForbiddenBody) MarshalBinary ¶
func (o *ListForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListForbiddenBody) UnmarshalBinary ¶
func (o *ListForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListHandler ¶
type ListHandler interface {
Handle(ListParams) middleware.Responder
}
ListHandler interface for that can handle valid list params
type ListHandlerFunc ¶
type ListHandlerFunc func(ListParams) middleware.Responder
ListHandlerFunc turns a function with the right signature into a list handler
func (ListHandlerFunc) Handle ¶
func (fn ListHandlerFunc) Handle(params ListParams) middleware.Responder
Handle executing the request and returning a response
type ListInternalServerError ¶
type ListInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
ListInternalServerError list internal server error
swagger:response listInternalServerError
func NewListInternalServerError ¶
func NewListInternalServerError() *ListInternalServerError
NewListInternalServerError creates ListInternalServerError with default headers values
func (*ListInternalServerError) SetPayload ¶
func (o *ListInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the list internal server error response
func (*ListInternalServerError) WithPayload ¶
func (o *ListInternalServerError) WithPayload(payload interface{}) *ListInternalServerError
WithPayload adds the payload to the list internal server error response
func (*ListInternalServerError) WriteResponse ¶
func (o *ListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListNotFound ¶
type ListNotFound struct { /* In: Body */ Payload *ListNotFoundBody `json:"body,omitempty"` }
ListNotFound list not found
swagger:response listNotFound
func NewListNotFound ¶
func NewListNotFound() *ListNotFound
NewListNotFound creates ListNotFound with default headers values
func (*ListNotFound) SetPayload ¶
func (o *ListNotFound) SetPayload(payload *ListNotFoundBody)
SetPayload sets the payload to the list not found response
func (*ListNotFound) WithPayload ¶
func (o *ListNotFound) WithPayload(payload *ListNotFoundBody) *ListNotFound
WithPayload adds the payload to the list not found response
func (*ListNotFound) WriteResponse ¶
func (o *ListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListNotFoundBody ¶
type ListNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
ListNotFoundBody list not found body
swagger:model ListNotFoundBody
func (*ListNotFoundBody) ContextValidate ¶
ContextValidate validates this list not found body based on context it is used
func (*ListNotFoundBody) MarshalBinary ¶
func (o *ListNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListNotFoundBody) UnmarshalBinary ¶
func (o *ListNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListOK ¶
ListOK List Instances succeeded
swagger:response listOK
func (*ListOK) SetPayload ¶
SetPayload sets the payload to the list o k response
func (*ListOK) WithPayload ¶
WithPayload adds the payload to the list o k response
func (*ListOK) WriteResponse ¶
func (o *ListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListParams ¶
type ListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance name Pattern: ^[A-Za-z0-9\-_.]{1,32}$ In: query */ Name *string }
ListParams contains all the bound params for the list operation typically these are obtained from a http.Request
swagger:parameters list
func NewListParams ¶
func NewListParams() ListParams
NewListParams creates a new ListParams object
There are no default values defined in the spec.
func (*ListParams) BindRequest ¶
func (o *ListParams) 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 NewListParams() beforehand.
type ListURL ¶
type ListURL struct { Name *string // contains filtered or unexported fields }
ListURL generates an URL for the list operation
func (*ListURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*ListURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListUnauthorized ¶
type ListUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}ListUnauthorized list unauthorized
swagger:response listUnauthorized
func NewListUnauthorized ¶
func NewListUnauthorized() *ListUnauthorized
NewListUnauthorized creates ListUnauthorized with default headers values
func (*ListUnauthorized) SetPayload ¶
func (o *ListUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the list unauthorized response
func (*ListUnauthorized) WithPayload ¶
func (o *ListUnauthorized) WithPayload(payload interface{}) *ListUnauthorized
WithPayload adds the payload to the list unauthorized response
func (*ListUnauthorized) WriteResponse ¶
func (o *ListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Modify ¶
type Modify struct { Context *middleware.Context Handler ModifyHandler }
Modify swagger:route PUT /instances Instance modify
Modify Instance
func NewModify ¶
func NewModify(ctx *middleware.Context, handler ModifyHandler) *Modify
NewModify creates a new http.Handler for the modify operation
type ModifyBadRequest ¶
type ModifyBadRequest struct { /* In: Body */ Payload *ModifyBadRequestBody `json:"body,omitempty"` }
ModifyBadRequest modify bad request
swagger:response modifyBadRequest
func NewModifyBadRequest ¶
func NewModifyBadRequest() *ModifyBadRequest
NewModifyBadRequest creates ModifyBadRequest with default headers values
func (*ModifyBadRequest) SetPayload ¶
func (o *ModifyBadRequest) SetPayload(payload *ModifyBadRequestBody)
SetPayload sets the payload to the modify bad request response
func (*ModifyBadRequest) WithPayload ¶
func (o *ModifyBadRequest) WithPayload(payload *ModifyBadRequestBody) *ModifyBadRequest
WithPayload adds the payload to the modify bad request response
func (*ModifyBadRequest) WriteResponse ¶
func (o *ModifyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ModifyBadRequestBody ¶
type ModifyBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
ModifyBadRequestBody modify bad request body
swagger:model ModifyBadRequestBody
func (*ModifyBadRequestBody) ContextValidate ¶
ContextValidate validates this modify bad request body based on context it is used
func (*ModifyBadRequestBody) MarshalBinary ¶
func (o *ModifyBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyBadRequestBody) UnmarshalBinary ¶
func (o *ModifyBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyForbidden ¶
type ModifyForbidden struct { /* In: Body */ Payload *ModifyForbiddenBody `json:"body,omitempty"` }
ModifyForbidden modify forbidden
swagger:response modifyForbidden
func NewModifyForbidden ¶
func NewModifyForbidden() *ModifyForbidden
NewModifyForbidden creates ModifyForbidden with default headers values
func (*ModifyForbidden) SetPayload ¶
func (o *ModifyForbidden) SetPayload(payload *ModifyForbiddenBody)
SetPayload sets the payload to the modify forbidden response
func (*ModifyForbidden) WithPayload ¶
func (o *ModifyForbidden) WithPayload(payload *ModifyForbiddenBody) *ModifyForbidden
WithPayload adds the payload to the modify forbidden response
func (*ModifyForbidden) WriteResponse ¶
func (o *ModifyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ModifyForbiddenBody ¶
type ModifyForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
ModifyForbiddenBody modify forbidden body
swagger:model ModifyForbiddenBody
func (*ModifyForbiddenBody) ContextValidate ¶
ContextValidate validates this modify forbidden body based on context it is used
func (*ModifyForbiddenBody) MarshalBinary ¶
func (o *ModifyForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyForbiddenBody) UnmarshalBinary ¶
func (o *ModifyForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyHandler ¶
type ModifyHandler interface {
Handle(ModifyParams) middleware.Responder
}
ModifyHandler interface for that can handle valid modify params
type ModifyHandlerFunc ¶
type ModifyHandlerFunc func(ModifyParams) middleware.Responder
ModifyHandlerFunc turns a function with the right signature into a modify handler
func (ModifyHandlerFunc) Handle ¶
func (fn ModifyHandlerFunc) Handle(params ModifyParams) middleware.Responder
Handle executing the request and returning a response
type ModifyInternalServerError ¶
type ModifyInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
ModifyInternalServerError modify internal server error
swagger:response modifyInternalServerError
func NewModifyInternalServerError ¶
func NewModifyInternalServerError() *ModifyInternalServerError
NewModifyInternalServerError creates ModifyInternalServerError with default headers values
func (*ModifyInternalServerError) SetPayload ¶
func (o *ModifyInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the modify internal server error response
func (*ModifyInternalServerError) WithPayload ¶
func (o *ModifyInternalServerError) WithPayload(payload interface{}) *ModifyInternalServerError
WithPayload adds the payload to the modify internal server error response
func (*ModifyInternalServerError) WriteResponse ¶
func (o *ModifyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ModifyNotFound ¶
type ModifyNotFound struct { /* In: Body */ Payload *ModifyNotFoundBody `json:"body,omitempty"` }
ModifyNotFound modify not found
swagger:response modifyNotFound
func NewModifyNotFound ¶
func NewModifyNotFound() *ModifyNotFound
NewModifyNotFound creates ModifyNotFound with default headers values
func (*ModifyNotFound) SetPayload ¶
func (o *ModifyNotFound) SetPayload(payload *ModifyNotFoundBody)
SetPayload sets the payload to the modify not found response
func (*ModifyNotFound) WithPayload ¶
func (o *ModifyNotFound) WithPayload(payload *ModifyNotFoundBody) *ModifyNotFound
WithPayload adds the payload to the modify not found response
func (*ModifyNotFound) WriteResponse ¶
func (o *ModifyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ModifyNotFoundBody ¶
type ModifyNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
ModifyNotFoundBody modify not found body
swagger:model ModifyNotFoundBody
func (*ModifyNotFoundBody) ContextValidate ¶
ContextValidate validates this modify not found body based on context it is used
func (*ModifyNotFoundBody) MarshalBinary ¶
func (o *ModifyNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyNotFoundBody) UnmarshalBinary ¶
func (o *ModifyNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyOK ¶
ModifyOK Modify Instance succeeded
swagger:response modifyOK
func NewModifyOK ¶
func NewModifyOK() *ModifyOK
NewModifyOK creates ModifyOK with default headers values
func (*ModifyOK) SetPayload ¶
SetPayload sets the payload to the modify o k response
func (*ModifyOK) WithPayload ¶
WithPayload adds the payload to the modify o k response
func (*ModifyOK) WriteResponse ¶
func (o *ModifyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ModifyParams ¶
type ModifyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance request Required: true In: body */ Config *models.InstanceConfig }
ModifyParams contains all the bound params for the modify operation typically these are obtained from a http.Request
swagger:parameters modify
func NewModifyParams ¶
func NewModifyParams() ModifyParams
NewModifyParams creates a new ModifyParams object
There are no default values defined in the spec.
func (*ModifyParams) BindRequest ¶
func (o *ModifyParams) 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 NewModifyParams() beforehand.
type ModifyURL ¶
type ModifyURL struct {
// contains filtered or unexported fields
}
ModifyURL generates an URL for the modify operation
func (*ModifyURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ModifyURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*ModifyURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ModifyUnauthorized ¶
type ModifyUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}ModifyUnauthorized modify unauthorized
swagger:response modifyUnauthorized
func NewModifyUnauthorized ¶
func NewModifyUnauthorized() *ModifyUnauthorized
NewModifyUnauthorized creates ModifyUnauthorized with default headers values
func (*ModifyUnauthorized) SetPayload ¶
func (o *ModifyUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the modify unauthorized response
func (*ModifyUnauthorized) WithPayload ¶
func (o *ModifyUnauthorized) WithPayload(payload interface{}) *ModifyUnauthorized
WithPayload adds the payload to the modify unauthorized response
func (*ModifyUnauthorized) WriteResponse ¶
func (o *ModifyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Start ¶
type Start struct { Context *middleware.Context Handler StartHandler }
Start swagger:route POST /instances/{name}/start Instance start
Start instance
func NewStart ¶
func NewStart(ctx *middleware.Context, handler StartHandler) *Start
NewStart creates a new http.Handler for the start operation
type StartBadRequest ¶
type StartBadRequest struct { /* In: Body */ Payload *StartBadRequestBody `json:"body,omitempty"` }
StartBadRequest start bad request
swagger:response startBadRequest
func NewStartBadRequest ¶
func NewStartBadRequest() *StartBadRequest
NewStartBadRequest creates StartBadRequest with default headers values
func (*StartBadRequest) SetPayload ¶
func (o *StartBadRequest) SetPayload(payload *StartBadRequestBody)
SetPayload sets the payload to the start bad request response
func (*StartBadRequest) WithPayload ¶
func (o *StartBadRequest) WithPayload(payload *StartBadRequestBody) *StartBadRequest
WithPayload adds the payload to the start bad request response
func (*StartBadRequest) WriteResponse ¶
func (o *StartBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StartBadRequestBody ¶
type StartBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
StartBadRequestBody start bad request body
swagger:model StartBadRequestBody
func (*StartBadRequestBody) ContextValidate ¶
ContextValidate validates this start bad request body based on context it is used
func (*StartBadRequestBody) MarshalBinary ¶
func (o *StartBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartBadRequestBody) UnmarshalBinary ¶
func (o *StartBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartForbidden ¶
type StartForbidden struct { /* In: Body */ Payload *StartForbiddenBody `json:"body,omitempty"` }
StartForbidden start forbidden
swagger:response startForbidden
func NewStartForbidden ¶
func NewStartForbidden() *StartForbidden
NewStartForbidden creates StartForbidden with default headers values
func (*StartForbidden) SetPayload ¶
func (o *StartForbidden) SetPayload(payload *StartForbiddenBody)
SetPayload sets the payload to the start forbidden response
func (*StartForbidden) WithPayload ¶
func (o *StartForbidden) WithPayload(payload *StartForbiddenBody) *StartForbidden
WithPayload adds the payload to the start forbidden response
func (*StartForbidden) WriteResponse ¶
func (o *StartForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StartForbiddenBody ¶
type StartForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
StartForbiddenBody start forbidden body
swagger:model StartForbiddenBody
func (*StartForbiddenBody) ContextValidate ¶
ContextValidate validates this start forbidden body based on context it is used
func (*StartForbiddenBody) MarshalBinary ¶
func (o *StartForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartForbiddenBody) UnmarshalBinary ¶
func (o *StartForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartHandler ¶
type StartHandler interface {
Handle(StartParams) middleware.Responder
}
StartHandler interface for that can handle valid start params
type StartHandlerFunc ¶
type StartHandlerFunc func(StartParams) middleware.Responder
StartHandlerFunc turns a function with the right signature into a start handler
func (StartHandlerFunc) Handle ¶
func (fn StartHandlerFunc) Handle(params StartParams) middleware.Responder
Handle executing the request and returning a response
type StartInternalServerError ¶
type StartInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
StartInternalServerError start internal server error
swagger:response startInternalServerError
func NewStartInternalServerError ¶
func NewStartInternalServerError() *StartInternalServerError
NewStartInternalServerError creates StartInternalServerError with default headers values
func (*StartInternalServerError) SetPayload ¶
func (o *StartInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the start internal server error response
func (*StartInternalServerError) WithPayload ¶
func (o *StartInternalServerError) WithPayload(payload interface{}) *StartInternalServerError
WithPayload adds the payload to the start internal server error response
func (*StartInternalServerError) WriteResponse ¶
func (o *StartInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StartNotFound ¶
type StartNotFound struct { /* In: Body */ Payload *StartNotFoundBody `json:"body,omitempty"` }
StartNotFound start not found
swagger:response startNotFound
func NewStartNotFound ¶
func NewStartNotFound() *StartNotFound
NewStartNotFound creates StartNotFound with default headers values
func (*StartNotFound) SetPayload ¶
func (o *StartNotFound) SetPayload(payload *StartNotFoundBody)
SetPayload sets the payload to the start not found response
func (*StartNotFound) WithPayload ¶
func (o *StartNotFound) WithPayload(payload *StartNotFoundBody) *StartNotFound
WithPayload adds the payload to the start not found response
func (*StartNotFound) WriteResponse ¶
func (o *StartNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StartNotFoundBody ¶
type StartNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
StartNotFoundBody start not found body
swagger:model StartNotFoundBody
func (*StartNotFoundBody) ContextValidate ¶
ContextValidate validates this start not found body based on context it is used
func (*StartNotFoundBody) MarshalBinary ¶
func (o *StartNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartNotFoundBody) UnmarshalBinary ¶
func (o *StartNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartOK ¶
StartOK Start instance succeeded
swagger:response startOK
func (*StartOK) SetPayload ¶
SetPayload sets the payload to the start o k response
func (*StartOK) WithPayload ¶
WithPayload adds the payload to the start o k response
func (*StartOK) WriteResponse ¶
func (o *StartOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StartParams ¶
type StartParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance name Required: true Pattern: ^[A-Za-z0-9\-_.]{1,32}$ In: path */ Name string }
StartParams contains all the bound params for the start operation typically these are obtained from a http.Request
swagger:parameters start
func NewStartParams ¶
func NewStartParams() StartParams
NewStartParams creates a new StartParams object
There are no default values defined in the spec.
func (*StartParams) BindRequest ¶
func (o *StartParams) 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 NewStartParams() beforehand.
type StartURL ¶
type StartURL struct { Name string // contains filtered or unexported fields }
StartURL generates an URL for the start operation
func (*StartURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*StartURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*StartURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type StartUnauthorized ¶
type StartUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}StartUnauthorized start unauthorized
swagger:response startUnauthorized
func NewStartUnauthorized ¶
func NewStartUnauthorized() *StartUnauthorized
NewStartUnauthorized creates StartUnauthorized with default headers values
func (*StartUnauthorized) SetPayload ¶
func (o *StartUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the start unauthorized response
func (*StartUnauthorized) WithPayload ¶
func (o *StartUnauthorized) WithPayload(payload interface{}) *StartUnauthorized
WithPayload adds the payload to the start unauthorized response
func (*StartUnauthorized) WriteResponse ¶
func (o *StartUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Stop ¶
type Stop struct { Context *middleware.Context Handler StopHandler }
Stop swagger:route POST /instances/{name}/stop Instance stop
Stop Instance
func NewStop ¶
func NewStop(ctx *middleware.Context, handler StopHandler) *Stop
NewStop creates a new http.Handler for the stop operation
type StopBadRequest ¶
type StopBadRequest struct { /* In: Body */ Payload *StopBadRequestBody `json:"body,omitempty"` }
StopBadRequest stop bad request
swagger:response stopBadRequest
func NewStopBadRequest ¶
func NewStopBadRequest() *StopBadRequest
NewStopBadRequest creates StopBadRequest with default headers values
func (*StopBadRequest) SetPayload ¶
func (o *StopBadRequest) SetPayload(payload *StopBadRequestBody)
SetPayload sets the payload to the stop bad request response
func (*StopBadRequest) WithPayload ¶
func (o *StopBadRequest) WithPayload(payload *StopBadRequestBody) *StopBadRequest
WithPayload adds the payload to the stop bad request response
func (*StopBadRequest) WriteResponse ¶
func (o *StopBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StopBadRequestBody ¶
type StopBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
StopBadRequestBody stop bad request body
swagger:model StopBadRequestBody
func (*StopBadRequestBody) ContextValidate ¶
ContextValidate validates this stop bad request body based on context it is used
func (*StopBadRequestBody) MarshalBinary ¶
func (o *StopBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopBadRequestBody) UnmarshalBinary ¶
func (o *StopBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopForbidden ¶
type StopForbidden struct { /* In: Body */ Payload *StopForbiddenBody `json:"body,omitempty"` }
StopForbidden stop forbidden
swagger:response stopForbidden
func NewStopForbidden ¶
func NewStopForbidden() *StopForbidden
NewStopForbidden creates StopForbidden with default headers values
func (*StopForbidden) SetPayload ¶
func (o *StopForbidden) SetPayload(payload *StopForbiddenBody)
SetPayload sets the payload to the stop forbidden response
func (*StopForbidden) WithPayload ¶
func (o *StopForbidden) WithPayload(payload *StopForbiddenBody) *StopForbidden
WithPayload adds the payload to the stop forbidden response
func (*StopForbidden) WriteResponse ¶
func (o *StopForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StopForbiddenBody ¶
type StopForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
StopForbiddenBody stop forbidden body
swagger:model StopForbiddenBody
func (*StopForbiddenBody) ContextValidate ¶
ContextValidate validates this stop forbidden body based on context it is used
func (*StopForbiddenBody) MarshalBinary ¶
func (o *StopForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopForbiddenBody) UnmarshalBinary ¶
func (o *StopForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopHandler ¶
type StopHandler interface {
Handle(StopParams) middleware.Responder
}
StopHandler interface for that can handle valid stop params
type StopHandlerFunc ¶
type StopHandlerFunc func(StopParams) middleware.Responder
StopHandlerFunc turns a function with the right signature into a stop handler
func (StopHandlerFunc) Handle ¶
func (fn StopHandlerFunc) Handle(params StopParams) middleware.Responder
Handle executing the request and returning a response
type StopInternalServerError ¶
type StopInternalServerError struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
StopInternalServerError stop internal server error
swagger:response stopInternalServerError
func NewStopInternalServerError ¶
func NewStopInternalServerError() *StopInternalServerError
NewStopInternalServerError creates StopInternalServerError with default headers values
func (*StopInternalServerError) SetPayload ¶
func (o *StopInternalServerError) SetPayload(payload interface{})
SetPayload sets the payload to the stop internal server error response
func (*StopInternalServerError) WithPayload ¶
func (o *StopInternalServerError) WithPayload(payload interface{}) *StopInternalServerError
WithPayload adds the payload to the stop internal server error response
func (*StopInternalServerError) WriteResponse ¶
func (o *StopInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StopNotFound ¶
type StopNotFound struct { /* In: Body */ Payload *StopNotFoundBody `json:"body,omitempty"` }
StopNotFound stop not found
swagger:response stopNotFound
func NewStopNotFound ¶
func NewStopNotFound() *StopNotFound
NewStopNotFound creates StopNotFound with default headers values
func (*StopNotFound) SetPayload ¶
func (o *StopNotFound) SetPayload(payload *StopNotFoundBody)
SetPayload sets the payload to the stop not found response
func (*StopNotFound) WithPayload ¶
func (o *StopNotFound) WithPayload(payload *StopNotFoundBody) *StopNotFound
WithPayload adds the payload to the stop not found response
func (*StopNotFound) WriteResponse ¶
func (o *StopNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StopNotFoundBody ¶
type StopNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
StopNotFoundBody stop not found body
swagger:model StopNotFoundBody
func (*StopNotFoundBody) ContextValidate ¶
ContextValidate validates this stop not found body based on context it is used
func (*StopNotFoundBody) MarshalBinary ¶
func (o *StopNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopNotFoundBody) UnmarshalBinary ¶
func (o *StopNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopOK ¶
StopOK Stop Instance succeeded
swagger:response stopOK
func (*StopOK) SetPayload ¶
SetPayload sets the payload to the stop o k response
func (*StopOK) WithPayload ¶
WithPayload adds the payload to the stop o k response
func (*StopOK) WriteResponse ¶
func (o *StopOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StopParams ¶
type StopParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Instance name Required: true Pattern: ^[A-Za-z0-9\-_.]{1,32}$ In: path */ Name string }
StopParams contains all the bound params for the stop operation typically these are obtained from a http.Request
swagger:parameters stop
func NewStopParams ¶
func NewStopParams() StopParams
NewStopParams creates a new StopParams object
There are no default values defined in the spec.
func (*StopParams) BindRequest ¶
func (o *StopParams) 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 NewStopParams() beforehand.
type StopURL ¶
type StopURL struct { Name string // contains filtered or unexported fields }
StopURL generates an URL for the stop operation
func (*StopURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*StopURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*StopURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type StopUnauthorized ¶
type StopUnauthorized struct {
Payload interface{} `json:"body,omitempty"`
}StopUnauthorized stop unauthorized
swagger:response stopUnauthorized
func NewStopUnauthorized ¶
func NewStopUnauthorized() *StopUnauthorized
NewStopUnauthorized creates StopUnauthorized with default headers values
func (*StopUnauthorized) SetPayload ¶
func (o *StopUnauthorized) SetPayload(payload interface{})
SetPayload sets the payload to the stop unauthorized response
func (*StopUnauthorized) WithPayload ¶
func (o *StopUnauthorized) WithPayload(payload interface{}) *StopUnauthorized
WithPayload adds the payload to the stop unauthorized response
func (*StopUnauthorized) WriteResponse ¶
func (o *StopUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create.go
- create_parameters.go
- create_responses.go
- create_urlbuilder.go
- delete.go
- delete_parameters.go
- delete_responses.go
- delete_urlbuilder.go
- get.go
- get_parameters.go
- get_responses.go
- get_urlbuilder.go
- list.go
- list_parameters.go
- list_responses.go
- list_urlbuilder.go
- modify.go
- modify_parameters.go
- modify_responses.go
- modify_urlbuilder.go
- start.go
- start_parameters.go
- start_responses.go
- start_urlbuilder.go
- stop.go
- stop_parameters.go
- stop_responses.go
- stop_urlbuilder.go