Documentation ¶
Index ¶
- Constants
- type CreateContainer
- type CreateContainerCreated
- type CreateContainerDefault
- func (o *CreateContainerDefault) SetPayload(payload *models.Error)
- func (o *CreateContainerDefault) SetStatusCode(code int)
- func (o *CreateContainerDefault) WithPayload(payload *models.Error) *CreateContainerDefault
- func (o *CreateContainerDefault) WithStatusCode(code int) *CreateContainerDefault
- func (o *CreateContainerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateContainerHandler
- type CreateContainerHandlerFunc
- type CreateContainerParams
- type CreateContainerURL
- func (o *CreateContainerURL) Build() (*url.URL, error)
- func (o *CreateContainerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateContainerURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateContainerURL) SetBasePath(bp string)
- func (o *CreateContainerURL) String() string
- func (o *CreateContainerURL) StringFull(scheme, host string) string
- func (o *CreateContainerURL) WithBasePath(bp string) *CreateContainerURL
- type DeleteContainer
- type DeleteContainerDefault
- func (o *DeleteContainerDefault) SetPayload(payload *models.Error)
- func (o *DeleteContainerDefault) SetStatusCode(code int)
- func (o *DeleteContainerDefault) WithPayload(payload *models.Error) *DeleteContainerDefault
- func (o *DeleteContainerDefault) WithStatusCode(code int) *DeleteContainerDefault
- func (o *DeleteContainerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteContainerHandler
- type DeleteContainerHandlerFunc
- type DeleteContainerOK
- type DeleteContainerParams
- type DeleteContainerURL
- func (o *DeleteContainerURL) Build() (*url.URL, error)
- func (o *DeleteContainerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteContainerURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteContainerURL) SetBasePath(bp string)
- func (o *DeleteContainerURL) String() string
- func (o *DeleteContainerURL) StringFull(scheme, host string) string
- func (o *DeleteContainerURL) WithBasePath(bp string) *DeleteContainerURL
- type ListContainers
- type ListContainersDefault
- func (o *ListContainersDefault) SetPayload(payload *models.Error)
- func (o *ListContainersDefault) SetStatusCode(code int)
- func (o *ListContainersDefault) WithPayload(payload *models.Error) *ListContainersDefault
- func (o *ListContainersDefault) WithStatusCode(code int) *ListContainersDefault
- func (o *ListContainersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListContainersHandler
- type ListContainersHandlerFunc
- type ListContainersOK
- type ListContainersParams
- type ListContainersURL
- func (o *ListContainersURL) Build() (*url.URL, error)
- func (o *ListContainersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListContainersURL) Must(u *url.URL, err error) *url.URL
- func (o *ListContainersURL) SetBasePath(bp string)
- func (o *ListContainersURL) String() string
- func (o *ListContainersURL) StringFull(scheme, host string) string
- func (o *ListContainersURL) WithBasePath(bp string) *ListContainersURL
- type SetContainerState
- type SetContainerStateDefault
- func (o *SetContainerStateDefault) SetPayload(payload *models.Error)
- func (o *SetContainerStateDefault) SetStatusCode(code int)
- func (o *SetContainerStateDefault) WithPayload(payload *models.Error) *SetContainerStateDefault
- func (o *SetContainerStateDefault) WithStatusCode(code int) *SetContainerStateDefault
- func (o *SetContainerStateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SetContainerStateHandler
- type SetContainerStateHandlerFunc
- type SetContainerStateOK
- type SetContainerStateParams
- type SetContainerStateURL
- func (o *SetContainerStateURL) Build() (*url.URL, error)
- func (o *SetContainerStateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetContainerStateURL) Must(u *url.URL, err error) *url.URL
- func (o *SetContainerStateURL) SetBasePath(bp string)
- func (o *SetContainerStateURL) String() string
- func (o *SetContainerStateURL) StringFull(scheme, host string) string
- func (o *SetContainerStateURL) WithBasePath(bp string) *SetContainerStateURL
Constants ¶
const CreateContainerCreatedCode int = 201
CreateContainerCreatedCode is the HTTP code returned for type CreateContainerCreated
const DeleteContainerOKCode int = 200
DeleteContainerOKCode is the HTTP code returned for type DeleteContainerOK
const ListContainersOKCode int = 200
ListContainersOKCode is the HTTP code returned for type ListContainersOK
const SetContainerStateOKCode int = 200
SetContainerStateOKCode is the HTTP code returned for type SetContainerStateOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateContainer ¶
type CreateContainer struct { Context *middleware.Context Handler CreateContainerHandler }
CreateContainer swagger:route POST /container containers createContainer
Create a container
func NewCreateContainer ¶
func NewCreateContainer(ctx *middleware.Context, handler CreateContainerHandler) *CreateContainer
NewCreateContainer creates a new http.Handler for the create container operation
func (*CreateContainer) ServeHTTP ¶
func (o *CreateContainer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateContainerCreated ¶
type CreateContainerCreated struct { /* In: Body */ Payload *models.Container `json:"body,omitempty"` }
CreateContainerCreated Container creation succeed
swagger:response createContainerCreated
func NewCreateContainerCreated ¶
func NewCreateContainerCreated() *CreateContainerCreated
NewCreateContainerCreated creates CreateContainerCreated with default headers values
func (*CreateContainerCreated) SetPayload ¶
func (o *CreateContainerCreated) SetPayload(payload *models.Container)
SetPayload sets the payload to the create container created response
func (*CreateContainerCreated) WithPayload ¶
func (o *CreateContainerCreated) WithPayload(payload *models.Container) *CreateContainerCreated
WithPayload adds the payload to the create container created response
func (*CreateContainerCreated) WriteResponse ¶
func (o *CreateContainerCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateContainerDefault ¶
type CreateContainerDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateContainerDefault error
swagger:response createContainerDefault
func NewCreateContainerDefault ¶
func NewCreateContainerDefault(code int) *CreateContainerDefault
NewCreateContainerDefault creates CreateContainerDefault with default headers values
func (*CreateContainerDefault) SetPayload ¶
func (o *CreateContainerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create container default response
func (*CreateContainerDefault) SetStatusCode ¶
func (o *CreateContainerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create container default response
func (*CreateContainerDefault) WithPayload ¶
func (o *CreateContainerDefault) WithPayload(payload *models.Error) *CreateContainerDefault
WithPayload adds the payload to the create container default response
func (*CreateContainerDefault) WithStatusCode ¶
func (o *CreateContainerDefault) WithStatusCode(code int) *CreateContainerDefault
WithStatusCode adds the status to the create container default response
func (*CreateContainerDefault) WriteResponse ¶
func (o *CreateContainerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateContainerHandler ¶
type CreateContainerHandler interface {
Handle(CreateContainerParams) middleware.Responder
}
CreateContainerHandler interface for that can handle valid create container params
type CreateContainerHandlerFunc ¶
type CreateContainerHandlerFunc func(CreateContainerParams) middleware.Responder
CreateContainerHandlerFunc turns a function with the right signature into a create container handler
func (CreateContainerHandlerFunc) Handle ¶
func (fn CreateContainerHandlerFunc) Handle(params CreateContainerParams) middleware.Responder
Handle executing the request and returning a response
type CreateContainerParams ¶
type CreateContainerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Container *models.Container }
CreateContainerParams contains all the bound params for the create container operation typically these are obtained from a http.Request
swagger:parameters create_container
func NewCreateContainerParams ¶
func NewCreateContainerParams() CreateContainerParams
NewCreateContainerParams creates a new CreateContainerParams object
There are no default values defined in the spec.
func (*CreateContainerParams) BindRequest ¶
func (o *CreateContainerParams) 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 NewCreateContainerParams() beforehand.
type CreateContainerURL ¶
type CreateContainerURL struct {
// contains filtered or unexported fields
}
CreateContainerURL generates an URL for the create container operation
func (*CreateContainerURL) Build ¶
func (o *CreateContainerURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateContainerURL) BuildFull ¶
func (o *CreateContainerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateContainerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateContainerURL) SetBasePath ¶
func (o *CreateContainerURL) SetBasePath(bp string)
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 (*CreateContainerURL) String ¶
func (o *CreateContainerURL) String() string
String returns the string representation of the path with query string
func (*CreateContainerURL) StringFull ¶
func (o *CreateContainerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateContainerURL) WithBasePath ¶
func (o *CreateContainerURL) WithBasePath(bp string) *CreateContainerURL
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 DeleteContainer ¶
type DeleteContainer struct { Context *middleware.Context Handler DeleteContainerHandler }
DeleteContainer swagger:route DELETE /container containers deleteContainer
Delete a container defition. Either `id` or `name` query parameter must be specified.
func NewDeleteContainer ¶
func NewDeleteContainer(ctx *middleware.Context, handler DeleteContainerHandler) *DeleteContainer
NewDeleteContainer creates a new http.Handler for the delete container operation
func (*DeleteContainer) ServeHTTP ¶
func (o *DeleteContainer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteContainerDefault ¶
type DeleteContainerDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteContainerDefault error
swagger:response deleteContainerDefault
func NewDeleteContainerDefault ¶
func NewDeleteContainerDefault(code int) *DeleteContainerDefault
NewDeleteContainerDefault creates DeleteContainerDefault with default headers values
func (*DeleteContainerDefault) SetPayload ¶
func (o *DeleteContainerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete container default response
func (*DeleteContainerDefault) SetStatusCode ¶
func (o *DeleteContainerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete container default response
func (*DeleteContainerDefault) WithPayload ¶
func (o *DeleteContainerDefault) WithPayload(payload *models.Error) *DeleteContainerDefault
WithPayload adds the payload to the delete container default response
func (*DeleteContainerDefault) WithStatusCode ¶
func (o *DeleteContainerDefault) WithStatusCode(code int) *DeleteContainerDefault
WithStatusCode adds the status to the delete container default response
func (*DeleteContainerDefault) WriteResponse ¶
func (o *DeleteContainerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteContainerHandler ¶
type DeleteContainerHandler interface {
Handle(DeleteContainerParams) middleware.Responder
}
DeleteContainerHandler interface for that can handle valid delete container params
type DeleteContainerHandlerFunc ¶
type DeleteContainerHandlerFunc func(DeleteContainerParams) middleware.Responder
DeleteContainerHandlerFunc turns a function with the right signature into a delete container handler
func (DeleteContainerHandlerFunc) Handle ¶
func (fn DeleteContainerHandlerFunc) Handle(params DeleteContainerParams) middleware.Responder
Handle executing the request and returning a response
type DeleteContainerOK ¶
DeleteContainerOK Container deleted
swagger:response deleteContainerOK
func NewDeleteContainerOK ¶
func NewDeleteContainerOK() *DeleteContainerOK
NewDeleteContainerOK creates DeleteContainerOK with default headers values
func (*DeleteContainerOK) SetPayload ¶
func (o *DeleteContainerOK) SetPayload(payload *models.Container)
SetPayload sets the payload to the delete container o k response
func (*DeleteContainerOK) WithPayload ¶
func (o *DeleteContainerOK) WithPayload(payload *models.Container) *DeleteContainerOK
WithPayload adds the payload to the delete container o k response
func (*DeleteContainerOK) WriteResponse ¶
func (o *DeleteContainerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteContainerParams ¶
type DeleteContainerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Force deletion In: query Default: false */ Force *bool /*Delete by ID In: query */ ID *int64 /*Delete by Name In: query */ Name *string }
DeleteContainerParams contains all the bound params for the delete container operation typically these are obtained from a http.Request
swagger:parameters delete_container
func NewDeleteContainerParams ¶
func NewDeleteContainerParams() DeleteContainerParams
NewDeleteContainerParams creates a new DeleteContainerParams object with the default values initialized.
func (*DeleteContainerParams) BindRequest ¶
func (o *DeleteContainerParams) 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 NewDeleteContainerParams() beforehand.
type DeleteContainerURL ¶
type DeleteContainerURL struct { Force *bool ID *int64 Name *string // contains filtered or unexported fields }
DeleteContainerURL generates an URL for the delete container operation
func (*DeleteContainerURL) Build ¶
func (o *DeleteContainerURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteContainerURL) BuildFull ¶
func (o *DeleteContainerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteContainerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteContainerURL) SetBasePath ¶
func (o *DeleteContainerURL) SetBasePath(bp string)
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 (*DeleteContainerURL) String ¶
func (o *DeleteContainerURL) String() string
String returns the string representation of the path with query string
func (*DeleteContainerURL) StringFull ¶
func (o *DeleteContainerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteContainerURL) WithBasePath ¶
func (o *DeleteContainerURL) WithBasePath(bp string) *DeleteContainerURL
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 ListContainers ¶
type ListContainers struct { Context *middleware.Context Handler ListContainersHandler }
ListContainers swagger:route GET /container containers listContainers
Get a list of containers
func NewListContainers ¶
func NewListContainers(ctx *middleware.Context, handler ListContainersHandler) *ListContainers
NewListContainers creates a new http.Handler for the list containers operation
func (*ListContainers) ServeHTTP ¶
func (o *ListContainers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListContainersDefault ¶
type ListContainersDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListContainersDefault error
swagger:response listContainersDefault
func NewListContainersDefault ¶
func NewListContainersDefault(code int) *ListContainersDefault
NewListContainersDefault creates ListContainersDefault with default headers values
func (*ListContainersDefault) SetPayload ¶
func (o *ListContainersDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list containers default response
func (*ListContainersDefault) SetStatusCode ¶
func (o *ListContainersDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list containers default response
func (*ListContainersDefault) WithPayload ¶
func (o *ListContainersDefault) WithPayload(payload *models.Error) *ListContainersDefault
WithPayload adds the payload to the list containers default response
func (*ListContainersDefault) WithStatusCode ¶
func (o *ListContainersDefault) WithStatusCode(code int) *ListContainersDefault
WithStatusCode adds the status to the list containers default response
func (*ListContainersDefault) WriteResponse ¶
func (o *ListContainersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListContainersHandler ¶
type ListContainersHandler interface {
Handle(ListContainersParams) middleware.Responder
}
ListContainersHandler interface for that can handle valid list containers params
type ListContainersHandlerFunc ¶
type ListContainersHandlerFunc func(ListContainersParams) middleware.Responder
ListContainersHandlerFunc turns a function with the right signature into a list containers handler
func (ListContainersHandlerFunc) Handle ¶
func (fn ListContainersHandlerFunc) Handle(params ListContainersParams) middleware.Responder
Handle executing the request and returning a response
type ListContainersOK ¶
ListContainersOK List of containers
swagger:response listContainersOK
func NewListContainersOK ¶
func NewListContainersOK() *ListContainersOK
NewListContainersOK creates ListContainersOK with default headers values
func (*ListContainersOK) SetPayload ¶
func (o *ListContainersOK) SetPayload(payload []*models.Container)
SetPayload sets the payload to the list containers o k response
func (*ListContainersOK) WithPayload ¶
func (o *ListContainersOK) WithPayload(payload []*models.Container) *ListContainersOK
WithPayload adds the payload to the list containers o k response
func (*ListContainersOK) WriteResponse ¶
func (o *ListContainersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListContainersParams ¶
type ListContainersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Query containers by ID In: query */ ID *int64 /*Query containers by name In: query */ Name *string /*Query containers by state In: query */ State *string }
ListContainersParams contains all the bound params for the list containers operation typically these are obtained from a http.Request
swagger:parameters list_containers
func NewListContainersParams ¶
func NewListContainersParams() ListContainersParams
NewListContainersParams creates a new ListContainersParams object
There are no default values defined in the spec.
func (*ListContainersParams) BindRequest ¶
func (o *ListContainersParams) 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 NewListContainersParams() beforehand.
type ListContainersURL ¶
type ListContainersURL struct { ID *int64 Name *string State *string // contains filtered or unexported fields }
ListContainersURL generates an URL for the list containers operation
func (*ListContainersURL) Build ¶
func (o *ListContainersURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListContainersURL) BuildFull ¶
func (o *ListContainersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListContainersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListContainersURL) SetBasePath ¶
func (o *ListContainersURL) SetBasePath(bp string)
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 (*ListContainersURL) String ¶
func (o *ListContainersURL) String() string
String returns the string representation of the path with query string
func (*ListContainersURL) StringFull ¶
func (o *ListContainersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListContainersURL) WithBasePath ¶
func (o *ListContainersURL) WithBasePath(bp string) *ListContainersURL
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 SetContainerState ¶
type SetContainerState struct { Context *middleware.Context Handler SetContainerStateHandler }
SetContainerState swagger:route PATCH /container containers setContainerState
Request a (valid) state for a container. Valid states to request include: `running`, `exited`, `paused` (paused is not yet implemented)
Either a valid Name or ID must be passed as a query parameter, along with a valid state parameter.
func NewSetContainerState ¶
func NewSetContainerState(ctx *middleware.Context, handler SetContainerStateHandler) *SetContainerState
NewSetContainerState creates a new http.Handler for the set container state operation
func (*SetContainerState) ServeHTTP ¶
func (o *SetContainerState) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SetContainerStateDefault ¶
type SetContainerStateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SetContainerStateDefault error
swagger:response setContainerStateDefault
func NewSetContainerStateDefault ¶
func NewSetContainerStateDefault(code int) *SetContainerStateDefault
NewSetContainerStateDefault creates SetContainerStateDefault with default headers values
func (*SetContainerStateDefault) SetPayload ¶
func (o *SetContainerStateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the set container state default response
func (*SetContainerStateDefault) SetStatusCode ¶
func (o *SetContainerStateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the set container state default response
func (*SetContainerStateDefault) WithPayload ¶
func (o *SetContainerStateDefault) WithPayload(payload *models.Error) *SetContainerStateDefault
WithPayload adds the payload to the set container state default response
func (*SetContainerStateDefault) WithStatusCode ¶
func (o *SetContainerStateDefault) WithStatusCode(code int) *SetContainerStateDefault
WithStatusCode adds the status to the set container state default response
func (*SetContainerStateDefault) WriteResponse ¶
func (o *SetContainerStateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetContainerStateHandler ¶
type SetContainerStateHandler interface {
Handle(SetContainerStateParams) middleware.Responder
}
SetContainerStateHandler interface for that can handle valid set container state params
type SetContainerStateHandlerFunc ¶
type SetContainerStateHandlerFunc func(SetContainerStateParams) middleware.Responder
SetContainerStateHandlerFunc turns a function with the right signature into a set container state handler
func (SetContainerStateHandlerFunc) Handle ¶
func (fn SetContainerStateHandlerFunc) Handle(params SetContainerStateParams) middleware.Responder
Handle executing the request and returning a response
type SetContainerStateOK ¶
type SetContainerStateOK struct { /* In: Body */ Payload *models.Container `json:"body,omitempty"` }
SetContainerStateOK Container state changed
swagger:response setContainerStateOK
func NewSetContainerStateOK ¶
func NewSetContainerStateOK() *SetContainerStateOK
NewSetContainerStateOK creates SetContainerStateOK with default headers values
func (*SetContainerStateOK) SetPayload ¶
func (o *SetContainerStateOK) SetPayload(payload *models.Container)
SetPayload sets the payload to the set container state o k response
func (*SetContainerStateOK) WithPayload ¶
func (o *SetContainerStateOK) WithPayload(payload *models.Container) *SetContainerStateOK
WithPayload adds the payload to the set container state o k response
func (*SetContainerStateOK) WriteResponse ¶
func (o *SetContainerStateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetContainerStateParams ¶
type SetContainerStateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of container In: query */ ID *int64 /*Name of container In: query */ Name *string /*Desired container state Required: true In: query */ State string }
SetContainerStateParams contains all the bound params for the set container state operation typically these are obtained from a http.Request
swagger:parameters set_container_state
func NewSetContainerStateParams ¶
func NewSetContainerStateParams() SetContainerStateParams
NewSetContainerStateParams creates a new SetContainerStateParams object
There are no default values defined in the spec.
func (*SetContainerStateParams) BindRequest ¶
func (o *SetContainerStateParams) 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 NewSetContainerStateParams() beforehand.
type SetContainerStateURL ¶
type SetContainerStateURL struct { ID *int64 Name *string State string // contains filtered or unexported fields }
SetContainerStateURL generates an URL for the set container state operation
func (*SetContainerStateURL) Build ¶
func (o *SetContainerStateURL) Build() (*url.URL, error)
Build a url path and query string
func (*SetContainerStateURL) BuildFull ¶
func (o *SetContainerStateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SetContainerStateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SetContainerStateURL) SetBasePath ¶
func (o *SetContainerStateURL) SetBasePath(bp string)
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 (*SetContainerStateURL) String ¶
func (o *SetContainerStateURL) String() string
String returns the string representation of the path with query string
func (*SetContainerStateURL) StringFull ¶
func (o *SetContainerStateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SetContainerStateURL) WithBasePath ¶
func (o *SetContainerStateURL) WithBasePath(bp string) *SetContainerStateURL
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
Source Files ¶
- create_container.go
- create_container_parameters.go
- create_container_responses.go
- create_container_urlbuilder.go
- delete_container.go
- delete_container_parameters.go
- delete_container_responses.go
- delete_container_urlbuilder.go
- list_containers.go
- list_containers_parameters.go
- list_containers_responses.go
- list_containers_urlbuilder.go
- set_container_state.go
- set_container_state_parameters.go
- set_container_state_responses.go
- set_container_state_urlbuilder.go