Documentation ¶
Index ¶
- type Client
- func (a *Client) NodeDelete(params *NodeDeleteParams, opts ...ClientOption) (*NodeDeleteOK, error)
- func (a *Client) NodeInspect(params *NodeInspectParams, opts ...ClientOption) (*NodeInspectOK, error)
- func (a *Client) NodeList(params *NodeListParams, opts ...ClientOption) (*NodeListOK, error)
- func (a *Client) NodeUpdate(params *NodeUpdateParams, opts ...ClientOption) (*NodeUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type NodeDeleteInternalServerError
- func (o *NodeDeleteInternalServerError) Error() string
- func (o *NodeDeleteInternalServerError) GetPayload() *models.ErrorResponse
- func (o *NodeDeleteInternalServerError) IsClientError() bool
- func (o *NodeDeleteInternalServerError) IsCode(code int) bool
- func (o *NodeDeleteInternalServerError) IsRedirect() bool
- func (o *NodeDeleteInternalServerError) IsServerError() bool
- func (o *NodeDeleteInternalServerError) IsSuccess() bool
- func (o *NodeDeleteInternalServerError) String() string
- type NodeDeleteNotFound
- func (o *NodeDeleteNotFound) Error() string
- func (o *NodeDeleteNotFound) GetPayload() *models.ErrorResponse
- func (o *NodeDeleteNotFound) IsClientError() bool
- func (o *NodeDeleteNotFound) IsCode(code int) bool
- func (o *NodeDeleteNotFound) IsRedirect() bool
- func (o *NodeDeleteNotFound) IsServerError() bool
- func (o *NodeDeleteNotFound) IsSuccess() bool
- func (o *NodeDeleteNotFound) String() string
- type NodeDeleteOK
- type NodeDeleteParams
- func (o *NodeDeleteParams) SetContext(ctx context.Context)
- func (o *NodeDeleteParams) SetDefaults()
- func (o *NodeDeleteParams) SetForce(force *bool)
- func (o *NodeDeleteParams) SetHTTPClient(client *http.Client)
- func (o *NodeDeleteParams) SetID(id string)
- func (o *NodeDeleteParams) SetTimeout(timeout time.Duration)
- func (o *NodeDeleteParams) WithContext(ctx context.Context) *NodeDeleteParams
- func (o *NodeDeleteParams) WithDefaults() *NodeDeleteParams
- func (o *NodeDeleteParams) WithForce(force *bool) *NodeDeleteParams
- func (o *NodeDeleteParams) WithHTTPClient(client *http.Client) *NodeDeleteParams
- func (o *NodeDeleteParams) WithID(id string) *NodeDeleteParams
- func (o *NodeDeleteParams) WithTimeout(timeout time.Duration) *NodeDeleteParams
- func (o *NodeDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NodeDeleteReader
- type NodeDeleteServiceUnavailable
- func (o *NodeDeleteServiceUnavailable) Error() string
- func (o *NodeDeleteServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *NodeDeleteServiceUnavailable) IsClientError() bool
- func (o *NodeDeleteServiceUnavailable) IsCode(code int) bool
- func (o *NodeDeleteServiceUnavailable) IsRedirect() bool
- func (o *NodeDeleteServiceUnavailable) IsServerError() bool
- func (o *NodeDeleteServiceUnavailable) IsSuccess() bool
- func (o *NodeDeleteServiceUnavailable) String() string
- type NodeInspectInternalServerError
- func (o *NodeInspectInternalServerError) Error() string
- func (o *NodeInspectInternalServerError) GetPayload() *models.ErrorResponse
- func (o *NodeInspectInternalServerError) IsClientError() bool
- func (o *NodeInspectInternalServerError) IsCode(code int) bool
- func (o *NodeInspectInternalServerError) IsRedirect() bool
- func (o *NodeInspectInternalServerError) IsServerError() bool
- func (o *NodeInspectInternalServerError) IsSuccess() bool
- func (o *NodeInspectInternalServerError) String() string
- type NodeInspectNotFound
- func (o *NodeInspectNotFound) Error() string
- func (o *NodeInspectNotFound) GetPayload() *models.ErrorResponse
- func (o *NodeInspectNotFound) IsClientError() bool
- func (o *NodeInspectNotFound) IsCode(code int) bool
- func (o *NodeInspectNotFound) IsRedirect() bool
- func (o *NodeInspectNotFound) IsServerError() bool
- func (o *NodeInspectNotFound) IsSuccess() bool
- func (o *NodeInspectNotFound) String() string
- type NodeInspectOK
- func (o *NodeInspectOK) Error() string
- func (o *NodeInspectOK) GetPayload() *models.Node
- func (o *NodeInspectOK) IsClientError() bool
- func (o *NodeInspectOK) IsCode(code int) bool
- func (o *NodeInspectOK) IsRedirect() bool
- func (o *NodeInspectOK) IsServerError() bool
- func (o *NodeInspectOK) IsSuccess() bool
- func (o *NodeInspectOK) String() string
- type NodeInspectParams
- func (o *NodeInspectParams) SetContext(ctx context.Context)
- func (o *NodeInspectParams) SetDefaults()
- func (o *NodeInspectParams) SetHTTPClient(client *http.Client)
- func (o *NodeInspectParams) SetID(id string)
- func (o *NodeInspectParams) SetTimeout(timeout time.Duration)
- func (o *NodeInspectParams) WithContext(ctx context.Context) *NodeInspectParams
- func (o *NodeInspectParams) WithDefaults() *NodeInspectParams
- func (o *NodeInspectParams) WithHTTPClient(client *http.Client) *NodeInspectParams
- func (o *NodeInspectParams) WithID(id string) *NodeInspectParams
- func (o *NodeInspectParams) WithTimeout(timeout time.Duration) *NodeInspectParams
- func (o *NodeInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NodeInspectReader
- type NodeInspectServiceUnavailable
- func (o *NodeInspectServiceUnavailable) Error() string
- func (o *NodeInspectServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *NodeInspectServiceUnavailable) IsClientError() bool
- func (o *NodeInspectServiceUnavailable) IsCode(code int) bool
- func (o *NodeInspectServiceUnavailable) IsRedirect() bool
- func (o *NodeInspectServiceUnavailable) IsServerError() bool
- func (o *NodeInspectServiceUnavailable) IsSuccess() bool
- func (o *NodeInspectServiceUnavailable) String() string
- type NodeListInternalServerError
- func (o *NodeListInternalServerError) Error() string
- func (o *NodeListInternalServerError) GetPayload() *models.ErrorResponse
- func (o *NodeListInternalServerError) IsClientError() bool
- func (o *NodeListInternalServerError) IsCode(code int) bool
- func (o *NodeListInternalServerError) IsRedirect() bool
- func (o *NodeListInternalServerError) IsServerError() bool
- func (o *NodeListInternalServerError) IsSuccess() bool
- func (o *NodeListInternalServerError) String() string
- type NodeListOK
- func (o *NodeListOK) Error() string
- func (o *NodeListOK) GetPayload() []*models.Node
- func (o *NodeListOK) IsClientError() bool
- func (o *NodeListOK) IsCode(code int) bool
- func (o *NodeListOK) IsRedirect() bool
- func (o *NodeListOK) IsServerError() bool
- func (o *NodeListOK) IsSuccess() bool
- func (o *NodeListOK) String() string
- type NodeListParams
- func (o *NodeListParams) SetContext(ctx context.Context)
- func (o *NodeListParams) SetDefaults()
- func (o *NodeListParams) SetFilters(filters *string)
- func (o *NodeListParams) SetHTTPClient(client *http.Client)
- func (o *NodeListParams) SetTimeout(timeout time.Duration)
- func (o *NodeListParams) WithContext(ctx context.Context) *NodeListParams
- func (o *NodeListParams) WithDefaults() *NodeListParams
- func (o *NodeListParams) WithFilters(filters *string) *NodeListParams
- func (o *NodeListParams) WithHTTPClient(client *http.Client) *NodeListParams
- func (o *NodeListParams) WithTimeout(timeout time.Duration) *NodeListParams
- func (o *NodeListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NodeListReader
- type NodeListServiceUnavailable
- func (o *NodeListServiceUnavailable) Error() string
- func (o *NodeListServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *NodeListServiceUnavailable) IsClientError() bool
- func (o *NodeListServiceUnavailable) IsCode(code int) bool
- func (o *NodeListServiceUnavailable) IsRedirect() bool
- func (o *NodeListServiceUnavailable) IsServerError() bool
- func (o *NodeListServiceUnavailable) IsSuccess() bool
- func (o *NodeListServiceUnavailable) String() string
- type NodeUpdateBadRequest
- func (o *NodeUpdateBadRequest) Error() string
- func (o *NodeUpdateBadRequest) GetPayload() *models.ErrorResponse
- func (o *NodeUpdateBadRequest) IsClientError() bool
- func (o *NodeUpdateBadRequest) IsCode(code int) bool
- func (o *NodeUpdateBadRequest) IsRedirect() bool
- func (o *NodeUpdateBadRequest) IsServerError() bool
- func (o *NodeUpdateBadRequest) IsSuccess() bool
- func (o *NodeUpdateBadRequest) String() string
- type NodeUpdateInternalServerError
- func (o *NodeUpdateInternalServerError) Error() string
- func (o *NodeUpdateInternalServerError) GetPayload() *models.ErrorResponse
- func (o *NodeUpdateInternalServerError) IsClientError() bool
- func (o *NodeUpdateInternalServerError) IsCode(code int) bool
- func (o *NodeUpdateInternalServerError) IsRedirect() bool
- func (o *NodeUpdateInternalServerError) IsServerError() bool
- func (o *NodeUpdateInternalServerError) IsSuccess() bool
- func (o *NodeUpdateInternalServerError) String() string
- type NodeUpdateNotFound
- func (o *NodeUpdateNotFound) Error() string
- func (o *NodeUpdateNotFound) GetPayload() *models.ErrorResponse
- func (o *NodeUpdateNotFound) IsClientError() bool
- func (o *NodeUpdateNotFound) IsCode(code int) bool
- func (o *NodeUpdateNotFound) IsRedirect() bool
- func (o *NodeUpdateNotFound) IsServerError() bool
- func (o *NodeUpdateNotFound) IsSuccess() bool
- func (o *NodeUpdateNotFound) String() string
- type NodeUpdateOK
- type NodeUpdateParams
- func (o *NodeUpdateParams) SetBody(body *models.NodeSpec)
- func (o *NodeUpdateParams) SetContext(ctx context.Context)
- func (o *NodeUpdateParams) SetDefaults()
- func (o *NodeUpdateParams) SetHTTPClient(client *http.Client)
- func (o *NodeUpdateParams) SetID(id string)
- func (o *NodeUpdateParams) SetTimeout(timeout time.Duration)
- func (o *NodeUpdateParams) SetVersion(version int64)
- func (o *NodeUpdateParams) WithBody(body *models.NodeSpec) *NodeUpdateParams
- func (o *NodeUpdateParams) WithContext(ctx context.Context) *NodeUpdateParams
- func (o *NodeUpdateParams) WithDefaults() *NodeUpdateParams
- func (o *NodeUpdateParams) WithHTTPClient(client *http.Client) *NodeUpdateParams
- func (o *NodeUpdateParams) WithID(id string) *NodeUpdateParams
- func (o *NodeUpdateParams) WithTimeout(timeout time.Duration) *NodeUpdateParams
- func (o *NodeUpdateParams) WithVersion(version int64) *NodeUpdateParams
- func (o *NodeUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NodeUpdateReader
- type NodeUpdateServiceUnavailable
- func (o *NodeUpdateServiceUnavailable) Error() string
- func (o *NodeUpdateServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *NodeUpdateServiceUnavailable) IsClientError() bool
- func (o *NodeUpdateServiceUnavailable) IsCode(code int) bool
- func (o *NodeUpdateServiceUnavailable) IsRedirect() bool
- func (o *NodeUpdateServiceUnavailable) IsServerError() bool
- func (o *NodeUpdateServiceUnavailable) IsSuccess() bool
- func (o *NodeUpdateServiceUnavailable) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for node API
func (*Client) NodeDelete ¶
func (a *Client) NodeDelete(params *NodeDeleteParams, opts ...ClientOption) (*NodeDeleteOK, error)
NodeDelete deletes a node
func (*Client) NodeInspect ¶
func (a *Client) NodeInspect(params *NodeInspectParams, opts ...ClientOption) (*NodeInspectOK, error)
NodeInspect inspects a node
func (*Client) NodeList ¶
func (a *Client) NodeList(params *NodeListParams, opts ...ClientOption) (*NodeListOK, error)
NodeList lists nodes
func (*Client) NodeUpdate ¶
func (a *Client) NodeUpdate(params *NodeUpdateParams, opts ...ClientOption) (*NodeUpdateOK, error)
NodeUpdate updates a node
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { NodeDelete(params *NodeDeleteParams, opts ...ClientOption) (*NodeDeleteOK, error) NodeInspect(params *NodeInspectParams, opts ...ClientOption) (*NodeInspectOK, error) NodeList(params *NodeListParams, opts ...ClientOption) (*NodeListOK, error) NodeUpdate(params *NodeUpdateParams, opts ...ClientOption) (*NodeUpdateOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new node API client.
type NodeDeleteInternalServerError ¶
type NodeDeleteInternalServerError struct {
Payload *models.ErrorResponse
}
NodeDeleteInternalServerError describes a response with status code 500, with default header values.
server error
func NewNodeDeleteInternalServerError ¶
func NewNodeDeleteInternalServerError() *NodeDeleteInternalServerError
NewNodeDeleteInternalServerError creates a NodeDeleteInternalServerError with default headers values
func (*NodeDeleteInternalServerError) Error ¶
func (o *NodeDeleteInternalServerError) Error() string
func (*NodeDeleteInternalServerError) GetPayload ¶
func (o *NodeDeleteInternalServerError) GetPayload() *models.ErrorResponse
func (*NodeDeleteInternalServerError) IsClientError ¶
func (o *NodeDeleteInternalServerError) IsClientError() bool
IsClientError returns true when this node delete internal server error response has a 4xx status code
func (*NodeDeleteInternalServerError) IsCode ¶
func (o *NodeDeleteInternalServerError) IsCode(code int) bool
IsCode returns true when this node delete internal server error response a status code equal to that given
func (*NodeDeleteInternalServerError) IsRedirect ¶
func (o *NodeDeleteInternalServerError) IsRedirect() bool
IsRedirect returns true when this node delete internal server error response has a 3xx status code
func (*NodeDeleteInternalServerError) IsServerError ¶
func (o *NodeDeleteInternalServerError) IsServerError() bool
IsServerError returns true when this node delete internal server error response has a 5xx status code
func (*NodeDeleteInternalServerError) IsSuccess ¶
func (o *NodeDeleteInternalServerError) IsSuccess() bool
IsSuccess returns true when this node delete internal server error response has a 2xx status code
func (*NodeDeleteInternalServerError) String ¶
func (o *NodeDeleteInternalServerError) String() string
type NodeDeleteNotFound ¶
type NodeDeleteNotFound struct {
Payload *models.ErrorResponse
}
NodeDeleteNotFound describes a response with status code 404, with default header values.
no such node
func NewNodeDeleteNotFound ¶
func NewNodeDeleteNotFound() *NodeDeleteNotFound
NewNodeDeleteNotFound creates a NodeDeleteNotFound with default headers values
func (*NodeDeleteNotFound) Error ¶
func (o *NodeDeleteNotFound) Error() string
func (*NodeDeleteNotFound) GetPayload ¶
func (o *NodeDeleteNotFound) GetPayload() *models.ErrorResponse
func (*NodeDeleteNotFound) IsClientError ¶
func (o *NodeDeleteNotFound) IsClientError() bool
IsClientError returns true when this node delete not found response has a 4xx status code
func (*NodeDeleteNotFound) IsCode ¶
func (o *NodeDeleteNotFound) IsCode(code int) bool
IsCode returns true when this node delete not found response a status code equal to that given
func (*NodeDeleteNotFound) IsRedirect ¶
func (o *NodeDeleteNotFound) IsRedirect() bool
IsRedirect returns true when this node delete not found response has a 3xx status code
func (*NodeDeleteNotFound) IsServerError ¶
func (o *NodeDeleteNotFound) IsServerError() bool
IsServerError returns true when this node delete not found response has a 5xx status code
func (*NodeDeleteNotFound) IsSuccess ¶
func (o *NodeDeleteNotFound) IsSuccess() bool
IsSuccess returns true when this node delete not found response has a 2xx status code
func (*NodeDeleteNotFound) String ¶
func (o *NodeDeleteNotFound) String() string
type NodeDeleteOK ¶
type NodeDeleteOK struct { }
NodeDeleteOK describes a response with status code 200, with default header values.
no error
func NewNodeDeleteOK ¶
func NewNodeDeleteOK() *NodeDeleteOK
NewNodeDeleteOK creates a NodeDeleteOK with default headers values
func (*NodeDeleteOK) Error ¶
func (o *NodeDeleteOK) Error() string
func (*NodeDeleteOK) IsClientError ¶
func (o *NodeDeleteOK) IsClientError() bool
IsClientError returns true when this node delete o k response has a 4xx status code
func (*NodeDeleteOK) IsCode ¶
func (o *NodeDeleteOK) IsCode(code int) bool
IsCode returns true when this node delete o k response a status code equal to that given
func (*NodeDeleteOK) IsRedirect ¶
func (o *NodeDeleteOK) IsRedirect() bool
IsRedirect returns true when this node delete o k response has a 3xx status code
func (*NodeDeleteOK) IsServerError ¶
func (o *NodeDeleteOK) IsServerError() bool
IsServerError returns true when this node delete o k response has a 5xx status code
func (*NodeDeleteOK) IsSuccess ¶
func (o *NodeDeleteOK) IsSuccess() bool
IsSuccess returns true when this node delete o k response has a 2xx status code
func (*NodeDeleteOK) String ¶
func (o *NodeDeleteOK) String() string
type NodeDeleteParams ¶
type NodeDeleteParams struct { /* Force. Force remove a node from the swarm */ Force *bool /* ID. The ID or name of the node */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NodeDeleteParams contains all the parameters to send to the API endpoint
for the node delete operation. Typically these are written to a http.Request.
func NewNodeDeleteParams ¶
func NewNodeDeleteParams() *NodeDeleteParams
NewNodeDeleteParams creates a new NodeDeleteParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewNodeDeleteParamsWithContext ¶
func NewNodeDeleteParamsWithContext(ctx context.Context) *NodeDeleteParams
NewNodeDeleteParamsWithContext creates a new NodeDeleteParams object with the ability to set a context for a request.
func NewNodeDeleteParamsWithHTTPClient ¶
func NewNodeDeleteParamsWithHTTPClient(client *http.Client) *NodeDeleteParams
NewNodeDeleteParamsWithHTTPClient creates a new NodeDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewNodeDeleteParamsWithTimeout ¶
func NewNodeDeleteParamsWithTimeout(timeout time.Duration) *NodeDeleteParams
NewNodeDeleteParamsWithTimeout creates a new NodeDeleteParams object with the ability to set a timeout on a request.
func (*NodeDeleteParams) SetContext ¶
func (o *NodeDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the node delete params
func (*NodeDeleteParams) SetDefaults ¶
func (o *NodeDeleteParams) SetDefaults()
SetDefaults hydrates default values in the node delete params (not the query body).
All values with no default are reset to their zero value.
func (*NodeDeleteParams) SetForce ¶
func (o *NodeDeleteParams) SetForce(force *bool)
SetForce adds the force to the node delete params
func (*NodeDeleteParams) SetHTTPClient ¶
func (o *NodeDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the node delete params
func (*NodeDeleteParams) SetID ¶
func (o *NodeDeleteParams) SetID(id string)
SetID adds the id to the node delete params
func (*NodeDeleteParams) SetTimeout ¶
func (o *NodeDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the node delete params
func (*NodeDeleteParams) WithContext ¶
func (o *NodeDeleteParams) WithContext(ctx context.Context) *NodeDeleteParams
WithContext adds the context to the node delete params
func (*NodeDeleteParams) WithDefaults ¶
func (o *NodeDeleteParams) WithDefaults() *NodeDeleteParams
WithDefaults hydrates default values in the node delete params (not the query body).
All values with no default are reset to their zero value.
func (*NodeDeleteParams) WithForce ¶
func (o *NodeDeleteParams) WithForce(force *bool) *NodeDeleteParams
WithForce adds the force to the node delete params
func (*NodeDeleteParams) WithHTTPClient ¶
func (o *NodeDeleteParams) WithHTTPClient(client *http.Client) *NodeDeleteParams
WithHTTPClient adds the HTTPClient to the node delete params
func (*NodeDeleteParams) WithID ¶
func (o *NodeDeleteParams) WithID(id string) *NodeDeleteParams
WithID adds the id to the node delete params
func (*NodeDeleteParams) WithTimeout ¶
func (o *NodeDeleteParams) WithTimeout(timeout time.Duration) *NodeDeleteParams
WithTimeout adds the timeout to the node delete params
func (*NodeDeleteParams) WriteToRequest ¶
func (o *NodeDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NodeDeleteReader ¶
type NodeDeleteReader struct {
// contains filtered or unexported fields
}
NodeDeleteReader is a Reader for the NodeDelete structure.
func (*NodeDeleteReader) ReadResponse ¶
func (o *NodeDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NodeDeleteServiceUnavailable ¶
type NodeDeleteServiceUnavailable struct {
}NodeDeleteServiceUnavailable describes a response with status code 503, with default header values.
node is not part of a swarm
func NewNodeDeleteServiceUnavailable ¶
func NewNodeDeleteServiceUnavailable() *NodeDeleteServiceUnavailable
NewNodeDeleteServiceUnavailable creates a NodeDeleteServiceUnavailable with default headers values
func (*NodeDeleteServiceUnavailable) Error ¶
func (o *NodeDeleteServiceUnavailable) Error() string
func (*NodeDeleteServiceUnavailable) GetPayload ¶
func (o *NodeDeleteServiceUnavailable) GetPayload() *models.ErrorResponse
func (*NodeDeleteServiceUnavailable) IsClientError ¶
func (o *NodeDeleteServiceUnavailable) IsClientError() bool
IsClientError returns true when this node delete service unavailable response has a 4xx status code
func (*NodeDeleteServiceUnavailable) IsCode ¶
func (o *NodeDeleteServiceUnavailable) IsCode(code int) bool
IsCode returns true when this node delete service unavailable response a status code equal to that given
func (*NodeDeleteServiceUnavailable) IsRedirect ¶
func (o *NodeDeleteServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this node delete service unavailable response has a 3xx status code
func (*NodeDeleteServiceUnavailable) IsServerError ¶
func (o *NodeDeleteServiceUnavailable) IsServerError() bool
IsServerError returns true when this node delete service unavailable response has a 5xx status code
func (*NodeDeleteServiceUnavailable) IsSuccess ¶
func (o *NodeDeleteServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this node delete service unavailable response has a 2xx status code
func (*NodeDeleteServiceUnavailable) String ¶
func (o *NodeDeleteServiceUnavailable) String() string
type NodeInspectInternalServerError ¶
type NodeInspectInternalServerError struct {
Payload *models.ErrorResponse
}
NodeInspectInternalServerError describes a response with status code 500, with default header values.
server error
func NewNodeInspectInternalServerError ¶
func NewNodeInspectInternalServerError() *NodeInspectInternalServerError
NewNodeInspectInternalServerError creates a NodeInspectInternalServerError with default headers values
func (*NodeInspectInternalServerError) Error ¶
func (o *NodeInspectInternalServerError) Error() string
func (*NodeInspectInternalServerError) GetPayload ¶
func (o *NodeInspectInternalServerError) GetPayload() *models.ErrorResponse
func (*NodeInspectInternalServerError) IsClientError ¶
func (o *NodeInspectInternalServerError) IsClientError() bool
IsClientError returns true when this node inspect internal server error response has a 4xx status code
func (*NodeInspectInternalServerError) IsCode ¶
func (o *NodeInspectInternalServerError) IsCode(code int) bool
IsCode returns true when this node inspect internal server error response a status code equal to that given
func (*NodeInspectInternalServerError) IsRedirect ¶
func (o *NodeInspectInternalServerError) IsRedirect() bool
IsRedirect returns true when this node inspect internal server error response has a 3xx status code
func (*NodeInspectInternalServerError) IsServerError ¶
func (o *NodeInspectInternalServerError) IsServerError() bool
IsServerError returns true when this node inspect internal server error response has a 5xx status code
func (*NodeInspectInternalServerError) IsSuccess ¶
func (o *NodeInspectInternalServerError) IsSuccess() bool
IsSuccess returns true when this node inspect internal server error response has a 2xx status code
func (*NodeInspectInternalServerError) String ¶
func (o *NodeInspectInternalServerError) String() string
type NodeInspectNotFound ¶
type NodeInspectNotFound struct {
Payload *models.ErrorResponse
}
NodeInspectNotFound describes a response with status code 404, with default header values.
no such node
func NewNodeInspectNotFound ¶
func NewNodeInspectNotFound() *NodeInspectNotFound
NewNodeInspectNotFound creates a NodeInspectNotFound with default headers values
func (*NodeInspectNotFound) Error ¶
func (o *NodeInspectNotFound) Error() string
func (*NodeInspectNotFound) GetPayload ¶
func (o *NodeInspectNotFound) GetPayload() *models.ErrorResponse
func (*NodeInspectNotFound) IsClientError ¶
func (o *NodeInspectNotFound) IsClientError() bool
IsClientError returns true when this node inspect not found response has a 4xx status code
func (*NodeInspectNotFound) IsCode ¶
func (o *NodeInspectNotFound) IsCode(code int) bool
IsCode returns true when this node inspect not found response a status code equal to that given
func (*NodeInspectNotFound) IsRedirect ¶
func (o *NodeInspectNotFound) IsRedirect() bool
IsRedirect returns true when this node inspect not found response has a 3xx status code
func (*NodeInspectNotFound) IsServerError ¶
func (o *NodeInspectNotFound) IsServerError() bool
IsServerError returns true when this node inspect not found response has a 5xx status code
func (*NodeInspectNotFound) IsSuccess ¶
func (o *NodeInspectNotFound) IsSuccess() bool
IsSuccess returns true when this node inspect not found response has a 2xx status code
func (*NodeInspectNotFound) String ¶
func (o *NodeInspectNotFound) String() string
type NodeInspectOK ¶
NodeInspectOK describes a response with status code 200, with default header values.
no error
func NewNodeInspectOK ¶
func NewNodeInspectOK() *NodeInspectOK
NewNodeInspectOK creates a NodeInspectOK with default headers values
func (*NodeInspectOK) Error ¶
func (o *NodeInspectOK) Error() string
func (*NodeInspectOK) GetPayload ¶
func (o *NodeInspectOK) GetPayload() *models.Node
func (*NodeInspectOK) IsClientError ¶
func (o *NodeInspectOK) IsClientError() bool
IsClientError returns true when this node inspect o k response has a 4xx status code
func (*NodeInspectOK) IsCode ¶
func (o *NodeInspectOK) IsCode(code int) bool
IsCode returns true when this node inspect o k response a status code equal to that given
func (*NodeInspectOK) IsRedirect ¶
func (o *NodeInspectOK) IsRedirect() bool
IsRedirect returns true when this node inspect o k response has a 3xx status code
func (*NodeInspectOK) IsServerError ¶
func (o *NodeInspectOK) IsServerError() bool
IsServerError returns true when this node inspect o k response has a 5xx status code
func (*NodeInspectOK) IsSuccess ¶
func (o *NodeInspectOK) IsSuccess() bool
IsSuccess returns true when this node inspect o k response has a 2xx status code
func (*NodeInspectOK) String ¶
func (o *NodeInspectOK) String() string
type NodeInspectParams ¶
type NodeInspectParams struct { /* ID. The ID or name of the node */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NodeInspectParams contains all the parameters to send to the API endpoint
for the node inspect operation. Typically these are written to a http.Request.
func NewNodeInspectParams ¶
func NewNodeInspectParams() *NodeInspectParams
NewNodeInspectParams creates a new NodeInspectParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewNodeInspectParamsWithContext ¶
func NewNodeInspectParamsWithContext(ctx context.Context) *NodeInspectParams
NewNodeInspectParamsWithContext creates a new NodeInspectParams object with the ability to set a context for a request.
func NewNodeInspectParamsWithHTTPClient ¶
func NewNodeInspectParamsWithHTTPClient(client *http.Client) *NodeInspectParams
NewNodeInspectParamsWithHTTPClient creates a new NodeInspectParams object with the ability to set a custom HTTPClient for a request.
func NewNodeInspectParamsWithTimeout ¶
func NewNodeInspectParamsWithTimeout(timeout time.Duration) *NodeInspectParams
NewNodeInspectParamsWithTimeout creates a new NodeInspectParams object with the ability to set a timeout on a request.
func (*NodeInspectParams) SetContext ¶
func (o *NodeInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the node inspect params
func (*NodeInspectParams) SetDefaults ¶
func (o *NodeInspectParams) SetDefaults()
SetDefaults hydrates default values in the node inspect params (not the query body).
All values with no default are reset to their zero value.
func (*NodeInspectParams) SetHTTPClient ¶
func (o *NodeInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the node inspect params
func (*NodeInspectParams) SetID ¶
func (o *NodeInspectParams) SetID(id string)
SetID adds the id to the node inspect params
func (*NodeInspectParams) SetTimeout ¶
func (o *NodeInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the node inspect params
func (*NodeInspectParams) WithContext ¶
func (o *NodeInspectParams) WithContext(ctx context.Context) *NodeInspectParams
WithContext adds the context to the node inspect params
func (*NodeInspectParams) WithDefaults ¶
func (o *NodeInspectParams) WithDefaults() *NodeInspectParams
WithDefaults hydrates default values in the node inspect params (not the query body).
All values with no default are reset to their zero value.
func (*NodeInspectParams) WithHTTPClient ¶
func (o *NodeInspectParams) WithHTTPClient(client *http.Client) *NodeInspectParams
WithHTTPClient adds the HTTPClient to the node inspect params
func (*NodeInspectParams) WithID ¶
func (o *NodeInspectParams) WithID(id string) *NodeInspectParams
WithID adds the id to the node inspect params
func (*NodeInspectParams) WithTimeout ¶
func (o *NodeInspectParams) WithTimeout(timeout time.Duration) *NodeInspectParams
WithTimeout adds the timeout to the node inspect params
func (*NodeInspectParams) WriteToRequest ¶
func (o *NodeInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NodeInspectReader ¶
type NodeInspectReader struct {
// contains filtered or unexported fields
}
NodeInspectReader is a Reader for the NodeInspect structure.
func (*NodeInspectReader) ReadResponse ¶
func (o *NodeInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NodeInspectServiceUnavailable ¶
type NodeInspectServiceUnavailable struct {
}NodeInspectServiceUnavailable describes a response with status code 503, with default header values.
node is not part of a swarm
func NewNodeInspectServiceUnavailable ¶
func NewNodeInspectServiceUnavailable() *NodeInspectServiceUnavailable
NewNodeInspectServiceUnavailable creates a NodeInspectServiceUnavailable with default headers values
func (*NodeInspectServiceUnavailable) Error ¶
func (o *NodeInspectServiceUnavailable) Error() string
func (*NodeInspectServiceUnavailable) GetPayload ¶
func (o *NodeInspectServiceUnavailable) GetPayload() *models.ErrorResponse
func (*NodeInspectServiceUnavailable) IsClientError ¶
func (o *NodeInspectServiceUnavailable) IsClientError() bool
IsClientError returns true when this node inspect service unavailable response has a 4xx status code
func (*NodeInspectServiceUnavailable) IsCode ¶
func (o *NodeInspectServiceUnavailable) IsCode(code int) bool
IsCode returns true when this node inspect service unavailable response a status code equal to that given
func (*NodeInspectServiceUnavailable) IsRedirect ¶
func (o *NodeInspectServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this node inspect service unavailable response has a 3xx status code
func (*NodeInspectServiceUnavailable) IsServerError ¶
func (o *NodeInspectServiceUnavailable) IsServerError() bool
IsServerError returns true when this node inspect service unavailable response has a 5xx status code
func (*NodeInspectServiceUnavailable) IsSuccess ¶
func (o *NodeInspectServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this node inspect service unavailable response has a 2xx status code
func (*NodeInspectServiceUnavailable) String ¶
func (o *NodeInspectServiceUnavailable) String() string
type NodeListInternalServerError ¶
type NodeListInternalServerError struct {
Payload *models.ErrorResponse
}
NodeListInternalServerError describes a response with status code 500, with default header values.
server error
func NewNodeListInternalServerError ¶
func NewNodeListInternalServerError() *NodeListInternalServerError
NewNodeListInternalServerError creates a NodeListInternalServerError with default headers values
func (*NodeListInternalServerError) Error ¶
func (o *NodeListInternalServerError) Error() string
func (*NodeListInternalServerError) GetPayload ¶
func (o *NodeListInternalServerError) GetPayload() *models.ErrorResponse
func (*NodeListInternalServerError) IsClientError ¶
func (o *NodeListInternalServerError) IsClientError() bool
IsClientError returns true when this node list internal server error response has a 4xx status code
func (*NodeListInternalServerError) IsCode ¶
func (o *NodeListInternalServerError) IsCode(code int) bool
IsCode returns true when this node list internal server error response a status code equal to that given
func (*NodeListInternalServerError) IsRedirect ¶
func (o *NodeListInternalServerError) IsRedirect() bool
IsRedirect returns true when this node list internal server error response has a 3xx status code
func (*NodeListInternalServerError) IsServerError ¶
func (o *NodeListInternalServerError) IsServerError() bool
IsServerError returns true when this node list internal server error response has a 5xx status code
func (*NodeListInternalServerError) IsSuccess ¶
func (o *NodeListInternalServerError) IsSuccess() bool
IsSuccess returns true when this node list internal server error response has a 2xx status code
func (*NodeListInternalServerError) String ¶
func (o *NodeListInternalServerError) String() string
type NodeListOK ¶
NodeListOK describes a response with status code 200, with default header values.
no error
func NewNodeListOK ¶
func NewNodeListOK() *NodeListOK
NewNodeListOK creates a NodeListOK with default headers values
func (*NodeListOK) Error ¶
func (o *NodeListOK) Error() string
func (*NodeListOK) GetPayload ¶
func (o *NodeListOK) GetPayload() []*models.Node
func (*NodeListOK) IsClientError ¶
func (o *NodeListOK) IsClientError() bool
IsClientError returns true when this node list o k response has a 4xx status code
func (*NodeListOK) IsCode ¶
func (o *NodeListOK) IsCode(code int) bool
IsCode returns true when this node list o k response a status code equal to that given
func (*NodeListOK) IsRedirect ¶
func (o *NodeListOK) IsRedirect() bool
IsRedirect returns true when this node list o k response has a 3xx status code
func (*NodeListOK) IsServerError ¶
func (o *NodeListOK) IsServerError() bool
IsServerError returns true when this node list o k response has a 5xx status code
func (*NodeListOK) IsSuccess ¶
func (o *NodeListOK) IsSuccess() bool
IsSuccess returns true when this node list o k response has a 2xx status code
func (*NodeListOK) String ¶
func (o *NodeListOK) String() string
type NodeListParams ¶
type NodeListParams struct { /* Filters. 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`)` */ Filters *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NodeListParams contains all the parameters to send to the API endpoint
for the node list operation. Typically these are written to a http.Request.
func NewNodeListParams ¶
func NewNodeListParams() *NodeListParams
NewNodeListParams creates a new NodeListParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewNodeListParamsWithContext ¶
func NewNodeListParamsWithContext(ctx context.Context) *NodeListParams
NewNodeListParamsWithContext creates a new NodeListParams object with the ability to set a context for a request.
func NewNodeListParamsWithHTTPClient ¶
func NewNodeListParamsWithHTTPClient(client *http.Client) *NodeListParams
NewNodeListParamsWithHTTPClient creates a new NodeListParams object with the ability to set a custom HTTPClient for a request.
func NewNodeListParamsWithTimeout ¶
func NewNodeListParamsWithTimeout(timeout time.Duration) *NodeListParams
NewNodeListParamsWithTimeout creates a new NodeListParams object with the ability to set a timeout on a request.
func (*NodeListParams) SetContext ¶
func (o *NodeListParams) SetContext(ctx context.Context)
SetContext adds the context to the node list params
func (*NodeListParams) SetDefaults ¶
func (o *NodeListParams) SetDefaults()
SetDefaults hydrates default values in the node list params (not the query body).
All values with no default are reset to their zero value.
func (*NodeListParams) SetFilters ¶
func (o *NodeListParams) SetFilters(filters *string)
SetFilters adds the filters to the node list params
func (*NodeListParams) SetHTTPClient ¶
func (o *NodeListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the node list params
func (*NodeListParams) SetTimeout ¶
func (o *NodeListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the node list params
func (*NodeListParams) WithContext ¶
func (o *NodeListParams) WithContext(ctx context.Context) *NodeListParams
WithContext adds the context to the node list params
func (*NodeListParams) WithDefaults ¶
func (o *NodeListParams) WithDefaults() *NodeListParams
WithDefaults hydrates default values in the node list params (not the query body).
All values with no default are reset to their zero value.
func (*NodeListParams) WithFilters ¶
func (o *NodeListParams) WithFilters(filters *string) *NodeListParams
WithFilters adds the filters to the node list params
func (*NodeListParams) WithHTTPClient ¶
func (o *NodeListParams) WithHTTPClient(client *http.Client) *NodeListParams
WithHTTPClient adds the HTTPClient to the node list params
func (*NodeListParams) WithTimeout ¶
func (o *NodeListParams) WithTimeout(timeout time.Duration) *NodeListParams
WithTimeout adds the timeout to the node list params
func (*NodeListParams) WriteToRequest ¶
func (o *NodeListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NodeListReader ¶
type NodeListReader struct {
// contains filtered or unexported fields
}
NodeListReader is a Reader for the NodeList structure.
func (*NodeListReader) ReadResponse ¶
func (o *NodeListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NodeListServiceUnavailable ¶
type NodeListServiceUnavailable struct {
}NodeListServiceUnavailable describes a response with status code 503, with default header values.
node is not part of a swarm
func NewNodeListServiceUnavailable ¶
func NewNodeListServiceUnavailable() *NodeListServiceUnavailable
NewNodeListServiceUnavailable creates a NodeListServiceUnavailable with default headers values
func (*NodeListServiceUnavailable) Error ¶
func (o *NodeListServiceUnavailable) Error() string
func (*NodeListServiceUnavailable) GetPayload ¶
func (o *NodeListServiceUnavailable) GetPayload() *models.ErrorResponse
func (*NodeListServiceUnavailable) IsClientError ¶
func (o *NodeListServiceUnavailable) IsClientError() bool
IsClientError returns true when this node list service unavailable response has a 4xx status code
func (*NodeListServiceUnavailable) IsCode ¶
func (o *NodeListServiceUnavailable) IsCode(code int) bool
IsCode returns true when this node list service unavailable response a status code equal to that given
func (*NodeListServiceUnavailable) IsRedirect ¶
func (o *NodeListServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this node list service unavailable response has a 3xx status code
func (*NodeListServiceUnavailable) IsServerError ¶
func (o *NodeListServiceUnavailable) IsServerError() bool
IsServerError returns true when this node list service unavailable response has a 5xx status code
func (*NodeListServiceUnavailable) IsSuccess ¶
func (o *NodeListServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this node list service unavailable response has a 2xx status code
func (*NodeListServiceUnavailable) String ¶
func (o *NodeListServiceUnavailable) String() string
type NodeUpdateBadRequest ¶
type NodeUpdateBadRequest struct {
Payload *models.ErrorResponse
}
NodeUpdateBadRequest describes a response with status code 400, with default header values.
bad parameter
func NewNodeUpdateBadRequest ¶
func NewNodeUpdateBadRequest() *NodeUpdateBadRequest
NewNodeUpdateBadRequest creates a NodeUpdateBadRequest with default headers values
func (*NodeUpdateBadRequest) Error ¶
func (o *NodeUpdateBadRequest) Error() string
func (*NodeUpdateBadRequest) GetPayload ¶
func (o *NodeUpdateBadRequest) GetPayload() *models.ErrorResponse
func (*NodeUpdateBadRequest) IsClientError ¶
func (o *NodeUpdateBadRequest) IsClientError() bool
IsClientError returns true when this node update bad request response has a 4xx status code
func (*NodeUpdateBadRequest) IsCode ¶
func (o *NodeUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this node update bad request response a status code equal to that given
func (*NodeUpdateBadRequest) IsRedirect ¶
func (o *NodeUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this node update bad request response has a 3xx status code
func (*NodeUpdateBadRequest) IsServerError ¶
func (o *NodeUpdateBadRequest) IsServerError() bool
IsServerError returns true when this node update bad request response has a 5xx status code
func (*NodeUpdateBadRequest) IsSuccess ¶
func (o *NodeUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this node update bad request response has a 2xx status code
func (*NodeUpdateBadRequest) String ¶
func (o *NodeUpdateBadRequest) String() string
type NodeUpdateInternalServerError ¶
type NodeUpdateInternalServerError struct {
Payload *models.ErrorResponse
}
NodeUpdateInternalServerError describes a response with status code 500, with default header values.
server error
func NewNodeUpdateInternalServerError ¶
func NewNodeUpdateInternalServerError() *NodeUpdateInternalServerError
NewNodeUpdateInternalServerError creates a NodeUpdateInternalServerError with default headers values
func (*NodeUpdateInternalServerError) Error ¶
func (o *NodeUpdateInternalServerError) Error() string
func (*NodeUpdateInternalServerError) GetPayload ¶
func (o *NodeUpdateInternalServerError) GetPayload() *models.ErrorResponse
func (*NodeUpdateInternalServerError) IsClientError ¶
func (o *NodeUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this node update internal server error response has a 4xx status code
func (*NodeUpdateInternalServerError) IsCode ¶
func (o *NodeUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this node update internal server error response a status code equal to that given
func (*NodeUpdateInternalServerError) IsRedirect ¶
func (o *NodeUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this node update internal server error response has a 3xx status code
func (*NodeUpdateInternalServerError) IsServerError ¶
func (o *NodeUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this node update internal server error response has a 5xx status code
func (*NodeUpdateInternalServerError) IsSuccess ¶
func (o *NodeUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this node update internal server error response has a 2xx status code
func (*NodeUpdateInternalServerError) String ¶
func (o *NodeUpdateInternalServerError) String() string
type NodeUpdateNotFound ¶
type NodeUpdateNotFound struct {
Payload *models.ErrorResponse
}
NodeUpdateNotFound describes a response with status code 404, with default header values.
no such node
func NewNodeUpdateNotFound ¶
func NewNodeUpdateNotFound() *NodeUpdateNotFound
NewNodeUpdateNotFound creates a NodeUpdateNotFound with default headers values
func (*NodeUpdateNotFound) Error ¶
func (o *NodeUpdateNotFound) Error() string
func (*NodeUpdateNotFound) GetPayload ¶
func (o *NodeUpdateNotFound) GetPayload() *models.ErrorResponse
func (*NodeUpdateNotFound) IsClientError ¶
func (o *NodeUpdateNotFound) IsClientError() bool
IsClientError returns true when this node update not found response has a 4xx status code
func (*NodeUpdateNotFound) IsCode ¶
func (o *NodeUpdateNotFound) IsCode(code int) bool
IsCode returns true when this node update not found response a status code equal to that given
func (*NodeUpdateNotFound) IsRedirect ¶
func (o *NodeUpdateNotFound) IsRedirect() bool
IsRedirect returns true when this node update not found response has a 3xx status code
func (*NodeUpdateNotFound) IsServerError ¶
func (o *NodeUpdateNotFound) IsServerError() bool
IsServerError returns true when this node update not found response has a 5xx status code
func (*NodeUpdateNotFound) IsSuccess ¶
func (o *NodeUpdateNotFound) IsSuccess() bool
IsSuccess returns true when this node update not found response has a 2xx status code
func (*NodeUpdateNotFound) String ¶
func (o *NodeUpdateNotFound) String() string
type NodeUpdateOK ¶
type NodeUpdateOK struct { }
NodeUpdateOK describes a response with status code 200, with default header values.
no error
func NewNodeUpdateOK ¶
func NewNodeUpdateOK() *NodeUpdateOK
NewNodeUpdateOK creates a NodeUpdateOK with default headers values
func (*NodeUpdateOK) Error ¶
func (o *NodeUpdateOK) Error() string
func (*NodeUpdateOK) IsClientError ¶
func (o *NodeUpdateOK) IsClientError() bool
IsClientError returns true when this node update o k response has a 4xx status code
func (*NodeUpdateOK) IsCode ¶
func (o *NodeUpdateOK) IsCode(code int) bool
IsCode returns true when this node update o k response a status code equal to that given
func (*NodeUpdateOK) IsRedirect ¶
func (o *NodeUpdateOK) IsRedirect() bool
IsRedirect returns true when this node update o k response has a 3xx status code
func (*NodeUpdateOK) IsServerError ¶
func (o *NodeUpdateOK) IsServerError() bool
IsServerError returns true when this node update o k response has a 5xx status code
func (*NodeUpdateOK) IsSuccess ¶
func (o *NodeUpdateOK) IsSuccess() bool
IsSuccess returns true when this node update o k response has a 2xx status code
func (*NodeUpdateOK) String ¶
func (o *NodeUpdateOK) String() string
type NodeUpdateParams ¶
type NodeUpdateParams struct { // Body. Body *models.NodeSpec /* ID. The ID of the node */ ID string /* Version. The version number of the node object being updated. This is required to avoid conflicting writes. Format: int64 */ Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NodeUpdateParams contains all the parameters to send to the API endpoint
for the node update operation. Typically these are written to a http.Request.
func NewNodeUpdateParams ¶
func NewNodeUpdateParams() *NodeUpdateParams
NewNodeUpdateParams creates a new NodeUpdateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewNodeUpdateParamsWithContext ¶
func NewNodeUpdateParamsWithContext(ctx context.Context) *NodeUpdateParams
NewNodeUpdateParamsWithContext creates a new NodeUpdateParams object with the ability to set a context for a request.
func NewNodeUpdateParamsWithHTTPClient ¶
func NewNodeUpdateParamsWithHTTPClient(client *http.Client) *NodeUpdateParams
NewNodeUpdateParamsWithHTTPClient creates a new NodeUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewNodeUpdateParamsWithTimeout ¶
func NewNodeUpdateParamsWithTimeout(timeout time.Duration) *NodeUpdateParams
NewNodeUpdateParamsWithTimeout creates a new NodeUpdateParams object with the ability to set a timeout on a request.
func (*NodeUpdateParams) SetBody ¶
func (o *NodeUpdateParams) SetBody(body *models.NodeSpec)
SetBody adds the body to the node update params
func (*NodeUpdateParams) SetContext ¶
func (o *NodeUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the node update params
func (*NodeUpdateParams) SetDefaults ¶
func (o *NodeUpdateParams) SetDefaults()
SetDefaults hydrates default values in the node update params (not the query body).
All values with no default are reset to their zero value.
func (*NodeUpdateParams) SetHTTPClient ¶
func (o *NodeUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the node update params
func (*NodeUpdateParams) SetID ¶
func (o *NodeUpdateParams) SetID(id string)
SetID adds the id to the node update params
func (*NodeUpdateParams) SetTimeout ¶
func (o *NodeUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the node update params
func (*NodeUpdateParams) SetVersion ¶
func (o *NodeUpdateParams) SetVersion(version int64)
SetVersion adds the version to the node update params
func (*NodeUpdateParams) WithBody ¶
func (o *NodeUpdateParams) WithBody(body *models.NodeSpec) *NodeUpdateParams
WithBody adds the body to the node update params
func (*NodeUpdateParams) WithContext ¶
func (o *NodeUpdateParams) WithContext(ctx context.Context) *NodeUpdateParams
WithContext adds the context to the node update params
func (*NodeUpdateParams) WithDefaults ¶
func (o *NodeUpdateParams) WithDefaults() *NodeUpdateParams
WithDefaults hydrates default values in the node update params (not the query body).
All values with no default are reset to their zero value.
func (*NodeUpdateParams) WithHTTPClient ¶
func (o *NodeUpdateParams) WithHTTPClient(client *http.Client) *NodeUpdateParams
WithHTTPClient adds the HTTPClient to the node update params
func (*NodeUpdateParams) WithID ¶
func (o *NodeUpdateParams) WithID(id string) *NodeUpdateParams
WithID adds the id to the node update params
func (*NodeUpdateParams) WithTimeout ¶
func (o *NodeUpdateParams) WithTimeout(timeout time.Duration) *NodeUpdateParams
WithTimeout adds the timeout to the node update params
func (*NodeUpdateParams) WithVersion ¶
func (o *NodeUpdateParams) WithVersion(version int64) *NodeUpdateParams
WithVersion adds the version to the node update params
func (*NodeUpdateParams) WriteToRequest ¶
func (o *NodeUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NodeUpdateReader ¶
type NodeUpdateReader struct {
// contains filtered or unexported fields
}
NodeUpdateReader is a Reader for the NodeUpdate structure.
func (*NodeUpdateReader) ReadResponse ¶
func (o *NodeUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NodeUpdateServiceUnavailable ¶
type NodeUpdateServiceUnavailable struct {
}NodeUpdateServiceUnavailable describes a response with status code 503, with default header values.
node is not part of a swarm
func NewNodeUpdateServiceUnavailable ¶
func NewNodeUpdateServiceUnavailable() *NodeUpdateServiceUnavailable
NewNodeUpdateServiceUnavailable creates a NodeUpdateServiceUnavailable with default headers values
func (*NodeUpdateServiceUnavailable) Error ¶
func (o *NodeUpdateServiceUnavailable) Error() string
func (*NodeUpdateServiceUnavailable) GetPayload ¶
func (o *NodeUpdateServiceUnavailable) GetPayload() *models.ErrorResponse
func (*NodeUpdateServiceUnavailable) IsClientError ¶
func (o *NodeUpdateServiceUnavailable) IsClientError() bool
IsClientError returns true when this node update service unavailable response has a 4xx status code
func (*NodeUpdateServiceUnavailable) IsCode ¶
func (o *NodeUpdateServiceUnavailable) IsCode(code int) bool
IsCode returns true when this node update service unavailable response a status code equal to that given
func (*NodeUpdateServiceUnavailable) IsRedirect ¶
func (o *NodeUpdateServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this node update service unavailable response has a 3xx status code
func (*NodeUpdateServiceUnavailable) IsServerError ¶
func (o *NodeUpdateServiceUnavailable) IsServerError() bool
IsServerError returns true when this node update service unavailable response has a 5xx status code
func (*NodeUpdateServiceUnavailable) IsSuccess ¶
func (o *NodeUpdateServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this node update service unavailable response has a 2xx status code
func (*NodeUpdateServiceUnavailable) String ¶
func (o *NodeUpdateServiceUnavailable) String() string