Documentation
¶
Index ¶
- type Client
- type TaskInspectInternalServerError
- type TaskInspectNotFound
- type TaskInspectOK
- type TaskInspectParams
- func (o *TaskInspectParams) SetContext(ctx context.Context)
- func (o *TaskInspectParams) SetHTTPClient(client *http.Client)
- func (o *TaskInspectParams) SetID(id string)
- func (o *TaskInspectParams) SetTimeout(timeout time.Duration)
- func (o *TaskInspectParams) WithContext(ctx context.Context) *TaskInspectParams
- func (o *TaskInspectParams) WithHTTPClient(client *http.Client) *TaskInspectParams
- func (o *TaskInspectParams) WithID(id string) *TaskInspectParams
- func (o *TaskInspectParams) WithTimeout(timeout time.Duration) *TaskInspectParams
- func (o *TaskInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TaskInspectReader
- type TaskInspectServiceUnavailable
- type TaskListInternalServerError
- type TaskListOK
- type TaskListParams
- func (o *TaskListParams) SetContext(ctx context.Context)
- func (o *TaskListParams) SetFilters(filters *string)
- func (o *TaskListParams) SetHTTPClient(client *http.Client)
- func (o *TaskListParams) SetTimeout(timeout time.Duration)
- func (o *TaskListParams) WithContext(ctx context.Context) *TaskListParams
- func (o *TaskListParams) WithFilters(filters *string) *TaskListParams
- func (o *TaskListParams) WithHTTPClient(client *http.Client) *TaskListParams
- func (o *TaskListParams) WithTimeout(timeout time.Duration) *TaskListParams
- func (o *TaskListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TaskListReader
- type TaskListServiceUnavailable
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 task API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new task API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TaskInspect ¶
func (a *Client) TaskInspect(params *TaskInspectParams) (*TaskInspectOK, error)
TaskInspect inspects a task
func (*Client) TaskList ¶
func (a *Client) TaskList(params *TaskListParams) (*TaskListOK, error)
TaskList lists tasks
type TaskInspectInternalServerError ¶
type TaskInspectInternalServerError struct {
Payload *models.ErrorResponse
}
TaskInspectInternalServerError handles this case with default header values.
server error
func NewTaskInspectInternalServerError ¶
func NewTaskInspectInternalServerError() *TaskInspectInternalServerError
NewTaskInspectInternalServerError creates a TaskInspectInternalServerError with default headers values
func (*TaskInspectInternalServerError) Error ¶
func (o *TaskInspectInternalServerError) Error() string
type TaskInspectNotFound ¶
type TaskInspectNotFound struct {
Payload *models.ErrorResponse
}
TaskInspectNotFound handles this case with default header values.
no such task
func NewTaskInspectNotFound ¶
func NewTaskInspectNotFound() *TaskInspectNotFound
NewTaskInspectNotFound creates a TaskInspectNotFound with default headers values
func (*TaskInspectNotFound) Error ¶
func (o *TaskInspectNotFound) Error() string
type TaskInspectOK ¶
TaskInspectOK handles this case with default header values.
no error
func NewTaskInspectOK ¶
func NewTaskInspectOK() *TaskInspectOK
NewTaskInspectOK creates a TaskInspectOK with default headers values
func (*TaskInspectOK) Error ¶
func (o *TaskInspectOK) Error() string
type TaskInspectParams ¶
type TaskInspectParams struct { /*ID ID of the task */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TaskInspectParams contains all the parameters to send to the API endpoint for the task inspect operation typically these are written to a http.Request
func NewTaskInspectParams ¶
func NewTaskInspectParams() *TaskInspectParams
NewTaskInspectParams creates a new TaskInspectParams object with the default values initialized.
func NewTaskInspectParamsWithContext ¶
func NewTaskInspectParamsWithContext(ctx context.Context) *TaskInspectParams
NewTaskInspectParamsWithContext creates a new TaskInspectParams object with the default values initialized, and the ability to set a context for a request
func NewTaskInspectParamsWithHTTPClient ¶
func NewTaskInspectParamsWithHTTPClient(client *http.Client) *TaskInspectParams
NewTaskInspectParamsWithHTTPClient creates a new TaskInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTaskInspectParamsWithTimeout ¶
func NewTaskInspectParamsWithTimeout(timeout time.Duration) *TaskInspectParams
NewTaskInspectParamsWithTimeout creates a new TaskInspectParams object with the default values initialized, and the ability to set a timeout on a request
func (*TaskInspectParams) SetContext ¶
func (o *TaskInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the task inspect params
func (*TaskInspectParams) SetHTTPClient ¶
func (o *TaskInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the task inspect params
func (*TaskInspectParams) SetID ¶
func (o *TaskInspectParams) SetID(id string)
SetID adds the id to the task inspect params
func (*TaskInspectParams) SetTimeout ¶
func (o *TaskInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the task inspect params
func (*TaskInspectParams) WithContext ¶
func (o *TaskInspectParams) WithContext(ctx context.Context) *TaskInspectParams
WithContext adds the context to the task inspect params
func (*TaskInspectParams) WithHTTPClient ¶
func (o *TaskInspectParams) WithHTTPClient(client *http.Client) *TaskInspectParams
WithHTTPClient adds the HTTPClient to the task inspect params
func (*TaskInspectParams) WithID ¶
func (o *TaskInspectParams) WithID(id string) *TaskInspectParams
WithID adds the id to the task inspect params
func (*TaskInspectParams) WithTimeout ¶
func (o *TaskInspectParams) WithTimeout(timeout time.Duration) *TaskInspectParams
WithTimeout adds the timeout to the task inspect params
func (*TaskInspectParams) WriteToRequest ¶
func (o *TaskInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TaskInspectReader ¶
type TaskInspectReader struct {
// contains filtered or unexported fields
}
TaskInspectReader is a Reader for the TaskInspect structure.
func (*TaskInspectReader) ReadResponse ¶
func (o *TaskInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TaskInspectServiceUnavailable ¶
type TaskInspectServiceUnavailable struct {
}TaskInspectServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewTaskInspectServiceUnavailable ¶
func NewTaskInspectServiceUnavailable() *TaskInspectServiceUnavailable
NewTaskInspectServiceUnavailable creates a TaskInspectServiceUnavailable with default headers values
func (*TaskInspectServiceUnavailable) Error ¶
func (o *TaskInspectServiceUnavailable) Error() string
type TaskListInternalServerError ¶
type TaskListInternalServerError struct {
Payload *models.ErrorResponse
}
TaskListInternalServerError handles this case with default header values.
server error
func NewTaskListInternalServerError ¶
func NewTaskListInternalServerError() *TaskListInternalServerError
NewTaskListInternalServerError creates a TaskListInternalServerError with default headers values
func (*TaskListInternalServerError) Error ¶
func (o *TaskListInternalServerError) Error() string
type TaskListOK ¶
type TaskListOK struct {
Payload models.TaskListOKBody
}
TaskListOK handles this case with default header values.
no error
func NewTaskListOK ¶
func NewTaskListOK() *TaskListOK
NewTaskListOK creates a TaskListOK with default headers values
func (*TaskListOK) Error ¶
func (o *TaskListOK) Error() string
type TaskListParams ¶
type TaskListParams struct { /*Filters A JSON encoded value of the filters (a `map[string][]string`) to process on the tasks list. Available filters: - `desired-state=(running | shutdown | accepted)` - `id=<task id>` - `label=key` or `label="key=value"` - `name=<task name>` - `node=<node id or name>` - `service=<service name>` */ Filters *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TaskListParams contains all the parameters to send to the API endpoint for the task list operation typically these are written to a http.Request
func NewTaskListParams ¶
func NewTaskListParams() *TaskListParams
NewTaskListParams creates a new TaskListParams object with the default values initialized.
func NewTaskListParamsWithContext ¶
func NewTaskListParamsWithContext(ctx context.Context) *TaskListParams
NewTaskListParamsWithContext creates a new TaskListParams object with the default values initialized, and the ability to set a context for a request
func NewTaskListParamsWithHTTPClient ¶
func NewTaskListParamsWithHTTPClient(client *http.Client) *TaskListParams
NewTaskListParamsWithHTTPClient creates a new TaskListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTaskListParamsWithTimeout ¶
func NewTaskListParamsWithTimeout(timeout time.Duration) *TaskListParams
NewTaskListParamsWithTimeout creates a new TaskListParams object with the default values initialized, and the ability to set a timeout on a request
func (*TaskListParams) SetContext ¶
func (o *TaskListParams) SetContext(ctx context.Context)
SetContext adds the context to the task list params
func (*TaskListParams) SetFilters ¶
func (o *TaskListParams) SetFilters(filters *string)
SetFilters adds the filters to the task list params
func (*TaskListParams) SetHTTPClient ¶
func (o *TaskListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the task list params
func (*TaskListParams) SetTimeout ¶
func (o *TaskListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the task list params
func (*TaskListParams) WithContext ¶
func (o *TaskListParams) WithContext(ctx context.Context) *TaskListParams
WithContext adds the context to the task list params
func (*TaskListParams) WithFilters ¶
func (o *TaskListParams) WithFilters(filters *string) *TaskListParams
WithFilters adds the filters to the task list params
func (*TaskListParams) WithHTTPClient ¶
func (o *TaskListParams) WithHTTPClient(client *http.Client) *TaskListParams
WithHTTPClient adds the HTTPClient to the task list params
func (*TaskListParams) WithTimeout ¶
func (o *TaskListParams) WithTimeout(timeout time.Duration) *TaskListParams
WithTimeout adds the timeout to the task list params
func (*TaskListParams) WriteToRequest ¶
func (o *TaskListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TaskListReader ¶
type TaskListReader struct {
// contains filtered or unexported fields
}
TaskListReader is a Reader for the TaskList structure.
func (*TaskListReader) ReadResponse ¶
func (o *TaskListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TaskListServiceUnavailable ¶
type TaskListServiceUnavailable struct {
}TaskListServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewTaskListServiceUnavailable ¶
func NewTaskListServiceUnavailable() *TaskListServiceUnavailable
NewTaskListServiceUnavailable creates a TaskListServiceUnavailable with default headers values
func (*TaskListServiceUnavailable) Error ¶
func (o *TaskListServiceUnavailable) Error() string