Documentation ¶
Index ¶
- Constants
- type NodeDelete
- type NodeDeleteHandler
- type NodeDeleteHandlerFunc
- type NodeDeleteInternalServerError
- func (o *NodeDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *NodeDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeDeleteInternalServerError
- func (o *NodeDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NodeDeleteNotFound
- type NodeDeleteOK
- type NodeDeleteParams
- type NodeDeleteServiceUnavailable
- type NodeDeleteURL
- func (o *NodeDeleteURL) Build() (*url.URL, error)
- func (o *NodeDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NodeDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *NodeDeleteURL) SetBasePath(bp string)
- func (o *NodeDeleteURL) String() string
- func (o *NodeDeleteURL) StringFull(scheme, host string) string
- func (o *NodeDeleteURL) WithBasePath(bp string) *NodeDeleteURL
- type NodeInspect
- type NodeInspectHandler
- type NodeInspectHandlerFunc
- type NodeInspectInternalServerError
- func (o *NodeInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *NodeInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeInspectInternalServerError
- func (o *NodeInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NodeInspectNotFound
- type NodeInspectOK
- type NodeInspectParams
- type NodeInspectServiceUnavailable
- func (o *NodeInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *NodeInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *NodeInspectServiceUnavailable
- func (o *NodeInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NodeInspectURL
- func (o *NodeInspectURL) Build() (*url.URL, error)
- func (o *NodeInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NodeInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *NodeInspectURL) SetBasePath(bp string)
- func (o *NodeInspectURL) String() string
- func (o *NodeInspectURL) StringFull(scheme, host string) string
- func (o *NodeInspectURL) WithBasePath(bp string) *NodeInspectURL
- type NodeList
- type NodeListHandler
- type NodeListHandlerFunc
- type NodeListInternalServerError
- type NodeListOK
- type NodeListParams
- type NodeListServiceUnavailable
- type NodeListURL
- func (o *NodeListURL) Build() (*url.URL, error)
- func (o *NodeListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NodeListURL) Must(u *url.URL, err error) *url.URL
- func (o *NodeListURL) SetBasePath(bp string)
- func (o *NodeListURL) String() string
- func (o *NodeListURL) StringFull(scheme, host string) string
- func (o *NodeListURL) WithBasePath(bp string) *NodeListURL
- type NodeUpdate
- type NodeUpdateBadRequest
- type NodeUpdateHandler
- type NodeUpdateHandlerFunc
- type NodeUpdateInternalServerError
- func (o *NodeUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *NodeUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeUpdateInternalServerError
- func (o *NodeUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NodeUpdateNotFound
- type NodeUpdateOK
- type NodeUpdateParams
- type NodeUpdateServiceUnavailable
- type NodeUpdateURL
- func (o *NodeUpdateURL) Build() (*url.URL, error)
- func (o *NodeUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NodeUpdateURL) Must(u *url.URL, err error) *url.URL
- func (o *NodeUpdateURL) SetBasePath(bp string)
- func (o *NodeUpdateURL) String() string
- func (o *NodeUpdateURL) StringFull(scheme, host string) string
- func (o *NodeUpdateURL) WithBasePath(bp string) *NodeUpdateURL
Constants ¶
const NodeDeleteInternalServerErrorCode int = 500
NodeDeleteInternalServerErrorCode is the HTTP code returned for type NodeDeleteInternalServerError
const NodeDeleteNotFoundCode int = 404
NodeDeleteNotFoundCode is the HTTP code returned for type NodeDeleteNotFound
const NodeDeleteOKCode int = 200
NodeDeleteOKCode is the HTTP code returned for type NodeDeleteOK
NodeDeleteServiceUnavailableCode is the HTTP code returned for type NodeDeleteServiceUnavailable
const NodeInspectInternalServerErrorCode int = 500
NodeInspectInternalServerErrorCode is the HTTP code returned for type NodeInspectInternalServerError
const NodeInspectNotFoundCode int = 404
NodeInspectNotFoundCode is the HTTP code returned for type NodeInspectNotFound
const NodeInspectOKCode int = 200
NodeInspectOKCode is the HTTP code returned for type NodeInspectOK
NodeInspectServiceUnavailableCode is the HTTP code returned for type NodeInspectServiceUnavailable
const NodeListInternalServerErrorCode int = 500
NodeListInternalServerErrorCode is the HTTP code returned for type NodeListInternalServerError
const NodeListOKCode int = 200
NodeListOKCode is the HTTP code returned for type NodeListOK
NodeListServiceUnavailableCode is the HTTP code returned for type NodeListServiceUnavailable
const NodeUpdateBadRequestCode int = 400
NodeUpdateBadRequestCode is the HTTP code returned for type NodeUpdateBadRequest
const NodeUpdateInternalServerErrorCode int = 500
NodeUpdateInternalServerErrorCode is the HTTP code returned for type NodeUpdateInternalServerError
const NodeUpdateNotFoundCode int = 404
NodeUpdateNotFoundCode is the HTTP code returned for type NodeUpdateNotFound
const NodeUpdateOKCode int = 200
NodeUpdateOKCode is the HTTP code returned for type NodeUpdateOK
NodeUpdateServiceUnavailableCode is the HTTP code returned for type NodeUpdateServiceUnavailable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeDelete ¶
type NodeDelete struct { Context *middleware.Context Handler NodeDeleteHandler }
NodeDelete swagger:route DELETE /nodes/{id} Node nodeDelete
Delete a node
func NewNodeDelete ¶
func NewNodeDelete(ctx *middleware.Context, handler NodeDeleteHandler) *NodeDelete
NewNodeDelete creates a new http.Handler for the node delete operation
func (*NodeDelete) ServeHTTP ¶
func (o *NodeDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type NodeDeleteHandler ¶
type NodeDeleteHandler interface {
Handle(NodeDeleteParams) middleware.Responder
}
NodeDeleteHandler interface for that can handle valid node delete params
type NodeDeleteHandlerFunc ¶
type NodeDeleteHandlerFunc func(NodeDeleteParams) middleware.Responder
NodeDeleteHandlerFunc turns a function with the right signature into a node delete handler
func (NodeDeleteHandlerFunc) Handle ¶
func (fn NodeDeleteHandlerFunc) Handle(params NodeDeleteParams) middleware.Responder
Handle executing the request and returning a response
type NodeDeleteInternalServerError ¶
type NodeDeleteInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeDeleteInternalServerError server error
swagger:response nodeDeleteInternalServerError
func NewNodeDeleteInternalServerError ¶
func NewNodeDeleteInternalServerError() *NodeDeleteInternalServerError
NewNodeDeleteInternalServerError creates NodeDeleteInternalServerError with default headers values
func (*NodeDeleteInternalServerError) SetPayload ¶
func (o *NodeDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node delete internal server error response
func (*NodeDeleteInternalServerError) WithPayload ¶
func (o *NodeDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeDeleteInternalServerError
WithPayload adds the payload to the node delete internal server error response
func (*NodeDeleteInternalServerError) WriteResponse ¶
func (o *NodeDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeDeleteNotFound ¶
type NodeDeleteNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeDeleteNotFound no such node
swagger:response nodeDeleteNotFound
func NewNodeDeleteNotFound ¶
func NewNodeDeleteNotFound() *NodeDeleteNotFound
NewNodeDeleteNotFound creates NodeDeleteNotFound with default headers values
func (*NodeDeleteNotFound) SetPayload ¶
func (o *NodeDeleteNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node delete not found response
func (*NodeDeleteNotFound) WithPayload ¶
func (o *NodeDeleteNotFound) WithPayload(payload *models.ErrorResponse) *NodeDeleteNotFound
WithPayload adds the payload to the node delete not found response
func (*NodeDeleteNotFound) WriteResponse ¶
func (o *NodeDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeDeleteOK ¶
type NodeDeleteOK struct { }
NodeDeleteOK no error
swagger:response nodeDeleteOK
func NewNodeDeleteOK ¶
func NewNodeDeleteOK() *NodeDeleteOK
NewNodeDeleteOK creates NodeDeleteOK with default headers values
func (*NodeDeleteOK) WriteResponse ¶
func (o *NodeDeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeDeleteParams ¶
type NodeDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Force remove a node from the swarm In: query Default: false */ Force *bool /*The ID or name of the node Required: true In: path */ ID string }
NodeDeleteParams contains all the bound params for the node delete operation typically these are obtained from a http.Request
swagger:parameters NodeDelete
func NewNodeDeleteParams ¶
func NewNodeDeleteParams() NodeDeleteParams
NewNodeDeleteParams creates a new NodeDeleteParams object with the default values initialized.
func (*NodeDeleteParams) BindRequest ¶
func (o *NodeDeleteParams) 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 NewNodeDeleteParams() beforehand.
type NodeDeleteServiceUnavailable ¶
type NodeDeleteServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
NodeDeleteServiceUnavailable node is not part of a swarm
swagger:response nodeDeleteServiceUnavailable
func NewNodeDeleteServiceUnavailable ¶
func NewNodeDeleteServiceUnavailable() *NodeDeleteServiceUnavailable
NewNodeDeleteServiceUnavailable creates NodeDeleteServiceUnavailable with default headers values
func (*NodeDeleteServiceUnavailable) SetPayload ¶
func (o *NodeDeleteServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node delete service unavailable response
func (*NodeDeleteServiceUnavailable) WithPayload ¶
func (o *NodeDeleteServiceUnavailable) WithPayload(payload *models.ErrorResponse) *NodeDeleteServiceUnavailable
WithPayload adds the payload to the node delete service unavailable response
func (*NodeDeleteServiceUnavailable) WriteResponse ¶
func (o *NodeDeleteServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeDeleteURL ¶
NodeDeleteURL generates an URL for the node delete operation
func (*NodeDeleteURL) Build ¶
func (o *NodeDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*NodeDeleteURL) BuildFull ¶
func (o *NodeDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NodeDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*NodeDeleteURL) SetBasePath ¶
func (o *NodeDeleteURL) 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 (*NodeDeleteURL) String ¶
func (o *NodeDeleteURL) String() string
String returns the string representation of the path with query string
func (*NodeDeleteURL) StringFull ¶
func (o *NodeDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NodeDeleteURL) WithBasePath ¶
func (o *NodeDeleteURL) WithBasePath(bp string) *NodeDeleteURL
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 NodeInspect ¶
type NodeInspect struct { Context *middleware.Context Handler NodeInspectHandler }
NodeInspect swagger:route GET /nodes/{id} Node nodeInspect
Inspect a node
func NewNodeInspect ¶
func NewNodeInspect(ctx *middleware.Context, handler NodeInspectHandler) *NodeInspect
NewNodeInspect creates a new http.Handler for the node inspect operation
func (*NodeInspect) ServeHTTP ¶
func (o *NodeInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type NodeInspectHandler ¶
type NodeInspectHandler interface {
Handle(NodeInspectParams) middleware.Responder
}
NodeInspectHandler interface for that can handle valid node inspect params
type NodeInspectHandlerFunc ¶
type NodeInspectHandlerFunc func(NodeInspectParams) middleware.Responder
NodeInspectHandlerFunc turns a function with the right signature into a node inspect handler
func (NodeInspectHandlerFunc) Handle ¶
func (fn NodeInspectHandlerFunc) Handle(params NodeInspectParams) middleware.Responder
Handle executing the request and returning a response
type NodeInspectInternalServerError ¶
type NodeInspectInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeInspectInternalServerError server error
swagger:response nodeInspectInternalServerError
func NewNodeInspectInternalServerError ¶
func NewNodeInspectInternalServerError() *NodeInspectInternalServerError
NewNodeInspectInternalServerError creates NodeInspectInternalServerError with default headers values
func (*NodeInspectInternalServerError) SetPayload ¶
func (o *NodeInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node inspect internal server error response
func (*NodeInspectInternalServerError) WithPayload ¶
func (o *NodeInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeInspectInternalServerError
WithPayload adds the payload to the node inspect internal server error response
func (*NodeInspectInternalServerError) WriteResponse ¶
func (o *NodeInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeInspectNotFound ¶
type NodeInspectNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeInspectNotFound no such node
swagger:response nodeInspectNotFound
func NewNodeInspectNotFound ¶
func NewNodeInspectNotFound() *NodeInspectNotFound
NewNodeInspectNotFound creates NodeInspectNotFound with default headers values
func (*NodeInspectNotFound) SetPayload ¶
func (o *NodeInspectNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node inspect not found response
func (*NodeInspectNotFound) WithPayload ¶
func (o *NodeInspectNotFound) WithPayload(payload *models.ErrorResponse) *NodeInspectNotFound
WithPayload adds the payload to the node inspect not found response
func (*NodeInspectNotFound) WriteResponse ¶
func (o *NodeInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeInspectOK ¶
NodeInspectOK no error
swagger:response nodeInspectOK
func NewNodeInspectOK ¶
func NewNodeInspectOK() *NodeInspectOK
NewNodeInspectOK creates NodeInspectOK with default headers values
func (*NodeInspectOK) SetPayload ¶
func (o *NodeInspectOK) SetPayload(payload *models.Node)
SetPayload sets the payload to the node inspect o k response
func (*NodeInspectOK) WithPayload ¶
func (o *NodeInspectOK) WithPayload(payload *models.Node) *NodeInspectOK
WithPayload adds the payload to the node inspect o k response
func (*NodeInspectOK) WriteResponse ¶
func (o *NodeInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeInspectParams ¶
type NodeInspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID or name of the node Required: true In: path */ ID string }
NodeInspectParams contains all the bound params for the node inspect operation typically these are obtained from a http.Request
swagger:parameters NodeInspect
func NewNodeInspectParams ¶
func NewNodeInspectParams() NodeInspectParams
NewNodeInspectParams creates a new NodeInspectParams object
There are no default values defined in the spec.
func (*NodeInspectParams) BindRequest ¶
func (o *NodeInspectParams) 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 NewNodeInspectParams() beforehand.
type NodeInspectServiceUnavailable ¶
type NodeInspectServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
NodeInspectServiceUnavailable node is not part of a swarm
swagger:response nodeInspectServiceUnavailable
func NewNodeInspectServiceUnavailable ¶
func NewNodeInspectServiceUnavailable() *NodeInspectServiceUnavailable
NewNodeInspectServiceUnavailable creates NodeInspectServiceUnavailable with default headers values
func (*NodeInspectServiceUnavailable) SetPayload ¶
func (o *NodeInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node inspect service unavailable response
func (*NodeInspectServiceUnavailable) WithPayload ¶
func (o *NodeInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *NodeInspectServiceUnavailable
WithPayload adds the payload to the node inspect service unavailable response
func (*NodeInspectServiceUnavailable) WriteResponse ¶
func (o *NodeInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeInspectURL ¶
type NodeInspectURL struct { ID string // contains filtered or unexported fields }
NodeInspectURL generates an URL for the node inspect operation
func (*NodeInspectURL) Build ¶
func (o *NodeInspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*NodeInspectURL) BuildFull ¶
func (o *NodeInspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NodeInspectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*NodeInspectURL) SetBasePath ¶
func (o *NodeInspectURL) 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 (*NodeInspectURL) String ¶
func (o *NodeInspectURL) String() string
String returns the string representation of the path with query string
func (*NodeInspectURL) StringFull ¶
func (o *NodeInspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NodeInspectURL) WithBasePath ¶
func (o *NodeInspectURL) WithBasePath(bp string) *NodeInspectURL
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 NodeList ¶
type NodeList struct { Context *middleware.Context Handler NodeListHandler }
NodeList swagger:route GET /nodes Node nodeList
List nodes
func NewNodeList ¶
func NewNodeList(ctx *middleware.Context, handler NodeListHandler) *NodeList
NewNodeList creates a new http.Handler for the node list operation
type NodeListHandler ¶
type NodeListHandler interface {
Handle(NodeListParams) middleware.Responder
}
NodeListHandler interface for that can handle valid node list params
type NodeListHandlerFunc ¶
type NodeListHandlerFunc func(NodeListParams) middleware.Responder
NodeListHandlerFunc turns a function with the right signature into a node list handler
func (NodeListHandlerFunc) Handle ¶
func (fn NodeListHandlerFunc) Handle(params NodeListParams) middleware.Responder
Handle executing the request and returning a response
type NodeListInternalServerError ¶
type NodeListInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeListInternalServerError server error
swagger:response nodeListInternalServerError
func NewNodeListInternalServerError ¶
func NewNodeListInternalServerError() *NodeListInternalServerError
NewNodeListInternalServerError creates NodeListInternalServerError with default headers values
func (*NodeListInternalServerError) SetPayload ¶
func (o *NodeListInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node list internal server error response
func (*NodeListInternalServerError) WithPayload ¶
func (o *NodeListInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeListInternalServerError
WithPayload adds the payload to the node list internal server error response
func (*NodeListInternalServerError) WriteResponse ¶
func (o *NodeListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeListOK ¶
NodeListOK no error
swagger:response nodeListOK
func NewNodeListOK ¶
func NewNodeListOK() *NodeListOK
NewNodeListOK creates NodeListOK with default headers values
func (*NodeListOK) SetPayload ¶
func (o *NodeListOK) SetPayload(payload []*models.Node)
SetPayload sets the payload to the node list o k response
func (*NodeListOK) WithPayload ¶
func (o *NodeListOK) WithPayload(payload []*models.Node) *NodeListOK
WithPayload adds the payload to the node list o k response
func (*NodeListOK) WriteResponse ¶
func (o *NodeListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeListParams ¶
type NodeListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). Available filters: - `id=<node id>` - `label=<engine label>` - `membership=`(`accepted`|`pending`)` - `name=<node name>` - `node.label=<node label>` - `role=`(`manager`|`worker`)` In: query */ Filters *string }
NodeListParams contains all the bound params for the node list operation typically these are obtained from a http.Request
swagger:parameters NodeList
func NewNodeListParams ¶
func NewNodeListParams() NodeListParams
NewNodeListParams creates a new NodeListParams object
There are no default values defined in the spec.
func (*NodeListParams) BindRequest ¶
func (o *NodeListParams) 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 NewNodeListParams() beforehand.
type NodeListServiceUnavailable ¶
type NodeListServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
NodeListServiceUnavailable node is not part of a swarm
swagger:response nodeListServiceUnavailable
func NewNodeListServiceUnavailable ¶
func NewNodeListServiceUnavailable() *NodeListServiceUnavailable
NewNodeListServiceUnavailable creates NodeListServiceUnavailable with default headers values
func (*NodeListServiceUnavailable) SetPayload ¶
func (o *NodeListServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node list service unavailable response
func (*NodeListServiceUnavailable) WithPayload ¶
func (o *NodeListServiceUnavailable) WithPayload(payload *models.ErrorResponse) *NodeListServiceUnavailable
WithPayload adds the payload to the node list service unavailable response
func (*NodeListServiceUnavailable) WriteResponse ¶
func (o *NodeListServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeListURL ¶
type NodeListURL struct { Filters *string // contains filtered or unexported fields }
NodeListURL generates an URL for the node list operation
func (*NodeListURL) Build ¶
func (o *NodeListURL) Build() (*url.URL, error)
Build a url path and query string
func (*NodeListURL) BuildFull ¶
func (o *NodeListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NodeListURL) SetBasePath ¶
func (o *NodeListURL) 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 (*NodeListURL) String ¶
func (o *NodeListURL) String() string
String returns the string representation of the path with query string
func (*NodeListURL) StringFull ¶
func (o *NodeListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NodeListURL) WithBasePath ¶
func (o *NodeListURL) WithBasePath(bp string) *NodeListURL
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 NodeUpdate ¶
type NodeUpdate struct { Context *middleware.Context Handler NodeUpdateHandler }
NodeUpdate swagger:route POST /nodes/{id}/update Node nodeUpdate
Update a node
func NewNodeUpdate ¶
func NewNodeUpdate(ctx *middleware.Context, handler NodeUpdateHandler) *NodeUpdate
NewNodeUpdate creates a new http.Handler for the node update operation
func (*NodeUpdate) ServeHTTP ¶
func (o *NodeUpdate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type NodeUpdateBadRequest ¶
type NodeUpdateBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeUpdateBadRequest bad parameter
swagger:response nodeUpdateBadRequest
func NewNodeUpdateBadRequest ¶
func NewNodeUpdateBadRequest() *NodeUpdateBadRequest
NewNodeUpdateBadRequest creates NodeUpdateBadRequest with default headers values
func (*NodeUpdateBadRequest) SetPayload ¶
func (o *NodeUpdateBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node update bad request response
func (*NodeUpdateBadRequest) WithPayload ¶
func (o *NodeUpdateBadRequest) WithPayload(payload *models.ErrorResponse) *NodeUpdateBadRequest
WithPayload adds the payload to the node update bad request response
func (*NodeUpdateBadRequest) WriteResponse ¶
func (o *NodeUpdateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeUpdateHandler ¶
type NodeUpdateHandler interface {
Handle(NodeUpdateParams) middleware.Responder
}
NodeUpdateHandler interface for that can handle valid node update params
type NodeUpdateHandlerFunc ¶
type NodeUpdateHandlerFunc func(NodeUpdateParams) middleware.Responder
NodeUpdateHandlerFunc turns a function with the right signature into a node update handler
func (NodeUpdateHandlerFunc) Handle ¶
func (fn NodeUpdateHandlerFunc) Handle(params NodeUpdateParams) middleware.Responder
Handle executing the request and returning a response
type NodeUpdateInternalServerError ¶
type NodeUpdateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeUpdateInternalServerError server error
swagger:response nodeUpdateInternalServerError
func NewNodeUpdateInternalServerError ¶
func NewNodeUpdateInternalServerError() *NodeUpdateInternalServerError
NewNodeUpdateInternalServerError creates NodeUpdateInternalServerError with default headers values
func (*NodeUpdateInternalServerError) SetPayload ¶
func (o *NodeUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node update internal server error response
func (*NodeUpdateInternalServerError) WithPayload ¶
func (o *NodeUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *NodeUpdateInternalServerError
WithPayload adds the payload to the node update internal server error response
func (*NodeUpdateInternalServerError) WriteResponse ¶
func (o *NodeUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeUpdateNotFound ¶
type NodeUpdateNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
NodeUpdateNotFound no such node
swagger:response nodeUpdateNotFound
func NewNodeUpdateNotFound ¶
func NewNodeUpdateNotFound() *NodeUpdateNotFound
NewNodeUpdateNotFound creates NodeUpdateNotFound with default headers values
func (*NodeUpdateNotFound) SetPayload ¶
func (o *NodeUpdateNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node update not found response
func (*NodeUpdateNotFound) WithPayload ¶
func (o *NodeUpdateNotFound) WithPayload(payload *models.ErrorResponse) *NodeUpdateNotFound
WithPayload adds the payload to the node update not found response
func (*NodeUpdateNotFound) WriteResponse ¶
func (o *NodeUpdateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeUpdateOK ¶
type NodeUpdateOK struct { }
NodeUpdateOK no error
swagger:response nodeUpdateOK
func NewNodeUpdateOK ¶
func NewNodeUpdateOK() *NodeUpdateOK
NewNodeUpdateOK creates NodeUpdateOK with default headers values
func (*NodeUpdateOK) WriteResponse ¶
func (o *NodeUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeUpdateParams ¶
type NodeUpdateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.NodeSpec /*The ID of the node Required: true In: path */ ID string /*The version number of the node object being updated. This is required to avoid conflicting writes. Required: true In: query */ Version int64 }
NodeUpdateParams contains all the bound params for the node update operation typically these are obtained from a http.Request
swagger:parameters NodeUpdate
func NewNodeUpdateParams ¶
func NewNodeUpdateParams() NodeUpdateParams
NewNodeUpdateParams creates a new NodeUpdateParams object
There are no default values defined in the spec.
func (*NodeUpdateParams) BindRequest ¶
func (o *NodeUpdateParams) 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 NewNodeUpdateParams() beforehand.
type NodeUpdateServiceUnavailable ¶
type NodeUpdateServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
NodeUpdateServiceUnavailable node is not part of a swarm
swagger:response nodeUpdateServiceUnavailable
func NewNodeUpdateServiceUnavailable ¶
func NewNodeUpdateServiceUnavailable() *NodeUpdateServiceUnavailable
NewNodeUpdateServiceUnavailable creates NodeUpdateServiceUnavailable with default headers values
func (*NodeUpdateServiceUnavailable) SetPayload ¶
func (o *NodeUpdateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the node update service unavailable response
func (*NodeUpdateServiceUnavailable) WithPayload ¶
func (o *NodeUpdateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *NodeUpdateServiceUnavailable
WithPayload adds the payload to the node update service unavailable response
func (*NodeUpdateServiceUnavailable) WriteResponse ¶
func (o *NodeUpdateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NodeUpdateURL ¶
NodeUpdateURL generates an URL for the node update operation
func (*NodeUpdateURL) Build ¶
func (o *NodeUpdateURL) Build() (*url.URL, error)
Build a url path and query string
func (*NodeUpdateURL) BuildFull ¶
func (o *NodeUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NodeUpdateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*NodeUpdateURL) SetBasePath ¶
func (o *NodeUpdateURL) 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 (*NodeUpdateURL) String ¶
func (o *NodeUpdateURL) String() string
String returns the string representation of the path with query string
func (*NodeUpdateURL) StringFull ¶
func (o *NodeUpdateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NodeUpdateURL) WithBasePath ¶
func (o *NodeUpdateURL) WithBasePath(bp string) *NodeUpdateURL
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 ¶
- node_delete.go
- node_delete_parameters.go
- node_delete_responses.go
- node_delete_urlbuilder.go
- node_inspect.go
- node_inspect_parameters.go
- node_inspect_responses.go
- node_inspect_urlbuilder.go
- node_list.go
- node_list_parameters.go
- node_list_responses.go
- node_list_urlbuilder.go
- node_update.go
- node_update_parameters.go
- node_update_responses.go
- node_update_urlbuilder.go