Documentation
¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TaskInspect(params *TaskInspectParams, opts ...ClientOption) (*TaskInspectOK, error)
- func (a *Client) TaskList(params *TaskListParams, opts ...ClientOption) (*TaskListOK, error)
- func (a *Client) TaskLogs(params *TaskLogsParams, writer io.Writer, opts ...ClientOption) (*TaskLogsOK, error)
- type ClientOption
- type ClientService
- type TaskInspectInternalServerError
- func (o *TaskInspectInternalServerError) Error() string
- func (o *TaskInspectInternalServerError) GetPayload() *models.ErrorResponse
- func (o *TaskInspectInternalServerError) IsClientError() bool
- func (o *TaskInspectInternalServerError) IsCode(code int) bool
- func (o *TaskInspectInternalServerError) IsRedirect() bool
- func (o *TaskInspectInternalServerError) IsServerError() bool
- func (o *TaskInspectInternalServerError) IsSuccess() bool
- func (o *TaskInspectInternalServerError) String() string
- type TaskInspectNotFound
- func (o *TaskInspectNotFound) Error() string
- func (o *TaskInspectNotFound) GetPayload() *models.ErrorResponse
- func (o *TaskInspectNotFound) IsClientError() bool
- func (o *TaskInspectNotFound) IsCode(code int) bool
- func (o *TaskInspectNotFound) IsRedirect() bool
- func (o *TaskInspectNotFound) IsServerError() bool
- func (o *TaskInspectNotFound) IsSuccess() bool
- func (o *TaskInspectNotFound) String() string
- type TaskInspectOK
- func (o *TaskInspectOK) Error() string
- func (o *TaskInspectOK) GetPayload() *models.Task
- func (o *TaskInspectOK) IsClientError() bool
- func (o *TaskInspectOK) IsCode(code int) bool
- func (o *TaskInspectOK) IsRedirect() bool
- func (o *TaskInspectOK) IsServerError() bool
- func (o *TaskInspectOK) IsSuccess() bool
- func (o *TaskInspectOK) String() string
- type TaskInspectParams
- func (o *TaskInspectParams) SetContext(ctx context.Context)
- func (o *TaskInspectParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *TaskInspectServiceUnavailable) Error() string
- func (o *TaskInspectServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *TaskInspectServiceUnavailable) IsClientError() bool
- func (o *TaskInspectServiceUnavailable) IsCode(code int) bool
- func (o *TaskInspectServiceUnavailable) IsRedirect() bool
- func (o *TaskInspectServiceUnavailable) IsServerError() bool
- func (o *TaskInspectServiceUnavailable) IsSuccess() bool
- func (o *TaskInspectServiceUnavailable) String() string
- type TaskListInternalServerError
- func (o *TaskListInternalServerError) Error() string
- func (o *TaskListInternalServerError) GetPayload() *models.ErrorResponse
- func (o *TaskListInternalServerError) IsClientError() bool
- func (o *TaskListInternalServerError) IsCode(code int) bool
- func (o *TaskListInternalServerError) IsRedirect() bool
- func (o *TaskListInternalServerError) IsServerError() bool
- func (o *TaskListInternalServerError) IsSuccess() bool
- func (o *TaskListInternalServerError) String() string
- type TaskListOK
- func (o *TaskListOK) Error() string
- func (o *TaskListOK) GetPayload() []*models.Task
- func (o *TaskListOK) IsClientError() bool
- func (o *TaskListOK) IsCode(code int) bool
- func (o *TaskListOK) IsRedirect() bool
- func (o *TaskListOK) IsServerError() bool
- func (o *TaskListOK) IsSuccess() bool
- func (o *TaskListOK) String() string
- type TaskListParams
- func (o *TaskListParams) SetContext(ctx context.Context)
- func (o *TaskListParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *TaskListServiceUnavailable) Error() string
- func (o *TaskListServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *TaskListServiceUnavailable) IsClientError() bool
- func (o *TaskListServiceUnavailable) IsCode(code int) bool
- func (o *TaskListServiceUnavailable) IsRedirect() bool
- func (o *TaskListServiceUnavailable) IsServerError() bool
- func (o *TaskListServiceUnavailable) IsSuccess() bool
- func (o *TaskListServiceUnavailable) String() string
- type TaskLogsInternalServerError
- func (o *TaskLogsInternalServerError) Error() string
- func (o *TaskLogsInternalServerError) GetPayload() *models.ErrorResponse
- func (o *TaskLogsInternalServerError) IsClientError() bool
- func (o *TaskLogsInternalServerError) IsCode(code int) bool
- func (o *TaskLogsInternalServerError) IsRedirect() bool
- func (o *TaskLogsInternalServerError) IsServerError() bool
- func (o *TaskLogsInternalServerError) IsSuccess() bool
- func (o *TaskLogsInternalServerError) String() string
- type TaskLogsNotFound
- func (o *TaskLogsNotFound) Error() string
- func (o *TaskLogsNotFound) GetPayload() *models.ErrorResponse
- func (o *TaskLogsNotFound) IsClientError() bool
- func (o *TaskLogsNotFound) IsCode(code int) bool
- func (o *TaskLogsNotFound) IsRedirect() bool
- func (o *TaskLogsNotFound) IsServerError() bool
- func (o *TaskLogsNotFound) IsSuccess() bool
- func (o *TaskLogsNotFound) String() string
- type TaskLogsOK
- func (o *TaskLogsOK) Error() string
- func (o *TaskLogsOK) GetPayload() io.Writer
- func (o *TaskLogsOK) IsClientError() bool
- func (o *TaskLogsOK) IsCode(code int) bool
- func (o *TaskLogsOK) IsRedirect() bool
- func (o *TaskLogsOK) IsServerError() bool
- func (o *TaskLogsOK) IsSuccess() bool
- func (o *TaskLogsOK) String() string
- type TaskLogsParams
- func (o *TaskLogsParams) SetContext(ctx context.Context)
- func (o *TaskLogsParams) SetDefaults()
- func (o *TaskLogsParams) SetDetails(details *bool)
- func (o *TaskLogsParams) SetFollow(follow *bool)
- func (o *TaskLogsParams) SetHTTPClient(client *http.Client)
- func (o *TaskLogsParams) SetID(id string)
- func (o *TaskLogsParams) SetSince(since *int64)
- func (o *TaskLogsParams) SetStderr(stderr *bool)
- func (o *TaskLogsParams) SetStdout(stdout *bool)
- func (o *TaskLogsParams) SetTail(tail *string)
- func (o *TaskLogsParams) SetTimeout(timeout time.Duration)
- func (o *TaskLogsParams) SetTimestamps(timestamps *bool)
- func (o *TaskLogsParams) WithContext(ctx context.Context) *TaskLogsParams
- func (o *TaskLogsParams) WithDefaults() *TaskLogsParams
- func (o *TaskLogsParams) WithDetails(details *bool) *TaskLogsParams
- func (o *TaskLogsParams) WithFollow(follow *bool) *TaskLogsParams
- func (o *TaskLogsParams) WithHTTPClient(client *http.Client) *TaskLogsParams
- func (o *TaskLogsParams) WithID(id string) *TaskLogsParams
- func (o *TaskLogsParams) WithSince(since *int64) *TaskLogsParams
- func (o *TaskLogsParams) WithStderr(stderr *bool) *TaskLogsParams
- func (o *TaskLogsParams) WithStdout(stdout *bool) *TaskLogsParams
- func (o *TaskLogsParams) WithTail(tail *string) *TaskLogsParams
- func (o *TaskLogsParams) WithTimeout(timeout time.Duration) *TaskLogsParams
- func (o *TaskLogsParams) WithTimestamps(timestamps *bool) *TaskLogsParams
- func (o *TaskLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TaskLogsReader
- type TaskLogsServiceUnavailable
- func (o *TaskLogsServiceUnavailable) Error() string
- func (o *TaskLogsServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *TaskLogsServiceUnavailable) IsClientError() bool
- func (o *TaskLogsServiceUnavailable) IsCode(code int) bool
- func (o *TaskLogsServiceUnavailable) IsRedirect() bool
- func (o *TaskLogsServiceUnavailable) IsServerError() bool
- func (o *TaskLogsServiceUnavailable) IsSuccess() bool
- func (o *TaskLogsServiceUnavailable) 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 task API
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, opts ...ClientOption) (*TaskInspectOK, error)
TaskInspect inspects a task
func (*Client) TaskList ¶
func (a *Client) TaskList(params *TaskListParams, opts ...ClientOption) (*TaskListOK, error)
TaskList lists tasks
func (*Client) TaskLogs ¶
func (a *Client) TaskLogs(params *TaskLogsParams, writer io.Writer, opts ...ClientOption) (*TaskLogsOK, error)
TaskLogs gets task logs Get `stdout` and `stderr` logs from a task. See also [`/containers/{id}/logs`](#operation/ContainerLogs).
**Note**: This endpoint works only for services with the `local`, `json-file` or `journald` logging drivers.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { TaskInspect(params *TaskInspectParams, opts ...ClientOption) (*TaskInspectOK, error) TaskList(params *TaskListParams, opts ...ClientOption) (*TaskListOK, error) TaskLogs(params *TaskLogsParams, writer io.Writer, opts ...ClientOption) (*TaskLogsOK, 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 task API client.
type TaskInspectInternalServerError ¶
type TaskInspectInternalServerError struct {
Payload *models.ErrorResponse
}
TaskInspectInternalServerError describes a response with status code 500, 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
func (*TaskInspectInternalServerError) GetPayload ¶
func (o *TaskInspectInternalServerError) GetPayload() *models.ErrorResponse
func (*TaskInspectInternalServerError) IsClientError ¶
func (o *TaskInspectInternalServerError) IsClientError() bool
IsClientError returns true when this task inspect internal server error response has a 4xx status code
func (*TaskInspectInternalServerError) IsCode ¶
func (o *TaskInspectInternalServerError) IsCode(code int) bool
IsCode returns true when this task inspect internal server error response a status code equal to that given
func (*TaskInspectInternalServerError) IsRedirect ¶
func (o *TaskInspectInternalServerError) IsRedirect() bool
IsRedirect returns true when this task inspect internal server error response has a 3xx status code
func (*TaskInspectInternalServerError) IsServerError ¶
func (o *TaskInspectInternalServerError) IsServerError() bool
IsServerError returns true when this task inspect internal server error response has a 5xx status code
func (*TaskInspectInternalServerError) IsSuccess ¶
func (o *TaskInspectInternalServerError) IsSuccess() bool
IsSuccess returns true when this task inspect internal server error response has a 2xx status code
func (*TaskInspectInternalServerError) String ¶
func (o *TaskInspectInternalServerError) String() string
type TaskInspectNotFound ¶
type TaskInspectNotFound struct {
Payload *models.ErrorResponse
}
TaskInspectNotFound describes a response with status code 404, 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
func (*TaskInspectNotFound) GetPayload ¶
func (o *TaskInspectNotFound) GetPayload() *models.ErrorResponse
func (*TaskInspectNotFound) IsClientError ¶
func (o *TaskInspectNotFound) IsClientError() bool
IsClientError returns true when this task inspect not found response has a 4xx status code
func (*TaskInspectNotFound) IsCode ¶
func (o *TaskInspectNotFound) IsCode(code int) bool
IsCode returns true when this task inspect not found response a status code equal to that given
func (*TaskInspectNotFound) IsRedirect ¶
func (o *TaskInspectNotFound) IsRedirect() bool
IsRedirect returns true when this task inspect not found response has a 3xx status code
func (*TaskInspectNotFound) IsServerError ¶
func (o *TaskInspectNotFound) IsServerError() bool
IsServerError returns true when this task inspect not found response has a 5xx status code
func (*TaskInspectNotFound) IsSuccess ¶
func (o *TaskInspectNotFound) IsSuccess() bool
IsSuccess returns true when this task inspect not found response has a 2xx status code
func (*TaskInspectNotFound) String ¶
func (o *TaskInspectNotFound) String() string
type TaskInspectOK ¶
TaskInspectOK describes a response with status code 200, 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
func (*TaskInspectOK) GetPayload ¶
func (o *TaskInspectOK) GetPayload() *models.Task
func (*TaskInspectOK) IsClientError ¶
func (o *TaskInspectOK) IsClientError() bool
IsClientError returns true when this task inspect o k response has a 4xx status code
func (*TaskInspectOK) IsCode ¶
func (o *TaskInspectOK) IsCode(code int) bool
IsCode returns true when this task inspect o k response a status code equal to that given
func (*TaskInspectOK) IsRedirect ¶
func (o *TaskInspectOK) IsRedirect() bool
IsRedirect returns true when this task inspect o k response has a 3xx status code
func (*TaskInspectOK) IsServerError ¶
func (o *TaskInspectOK) IsServerError() bool
IsServerError returns true when this task inspect o k response has a 5xx status code
func (*TaskInspectOK) IsSuccess ¶
func (o *TaskInspectOK) IsSuccess() bool
IsSuccess returns true when this task inspect o k response has a 2xx status code
func (*TaskInspectOK) String ¶
func (o *TaskInspectOK) String() 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 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 NewTaskInspectParamsWithContext ¶
func NewTaskInspectParamsWithContext(ctx context.Context) *TaskInspectParams
NewTaskInspectParamsWithContext creates a new TaskInspectParams object with 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 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 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) SetDefaults ¶
func (o *TaskInspectParams) SetDefaults()
SetDefaults hydrates default values in the task inspect params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *TaskInspectParams) WithDefaults() *TaskInspectParams
WithDefaults hydrates default values in the task inspect params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 503, 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
func (*TaskInspectServiceUnavailable) GetPayload ¶
func (o *TaskInspectServiceUnavailable) GetPayload() *models.ErrorResponse
func (*TaskInspectServiceUnavailable) IsClientError ¶
func (o *TaskInspectServiceUnavailable) IsClientError() bool
IsClientError returns true when this task inspect service unavailable response has a 4xx status code
func (*TaskInspectServiceUnavailable) IsCode ¶
func (o *TaskInspectServiceUnavailable) IsCode(code int) bool
IsCode returns true when this task inspect service unavailable response a status code equal to that given
func (*TaskInspectServiceUnavailable) IsRedirect ¶
func (o *TaskInspectServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this task inspect service unavailable response has a 3xx status code
func (*TaskInspectServiceUnavailable) IsServerError ¶
func (o *TaskInspectServiceUnavailable) IsServerError() bool
IsServerError returns true when this task inspect service unavailable response has a 5xx status code
func (*TaskInspectServiceUnavailable) IsSuccess ¶
func (o *TaskInspectServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this task inspect service unavailable response has a 2xx status code
func (*TaskInspectServiceUnavailable) String ¶
func (o *TaskInspectServiceUnavailable) String() string
type TaskListInternalServerError ¶
type TaskListInternalServerError struct {
Payload *models.ErrorResponse
}
TaskListInternalServerError describes a response with status code 500, 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
func (*TaskListInternalServerError) GetPayload ¶
func (o *TaskListInternalServerError) GetPayload() *models.ErrorResponse
func (*TaskListInternalServerError) IsClientError ¶
func (o *TaskListInternalServerError) IsClientError() bool
IsClientError returns true when this task list internal server error response has a 4xx status code
func (*TaskListInternalServerError) IsCode ¶
func (o *TaskListInternalServerError) IsCode(code int) bool
IsCode returns true when this task list internal server error response a status code equal to that given
func (*TaskListInternalServerError) IsRedirect ¶
func (o *TaskListInternalServerError) IsRedirect() bool
IsRedirect returns true when this task list internal server error response has a 3xx status code
func (*TaskListInternalServerError) IsServerError ¶
func (o *TaskListInternalServerError) IsServerError() bool
IsServerError returns true when this task list internal server error response has a 5xx status code
func (*TaskListInternalServerError) IsSuccess ¶
func (o *TaskListInternalServerError) IsSuccess() bool
IsSuccess returns true when this task list internal server error response has a 2xx status code
func (*TaskListInternalServerError) String ¶
func (o *TaskListInternalServerError) String() string
type TaskListOK ¶
TaskListOK describes a response with status code 200, 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
func (*TaskListOK) GetPayload ¶
func (o *TaskListOK) GetPayload() []*models.Task
func (*TaskListOK) IsClientError ¶
func (o *TaskListOK) IsClientError() bool
IsClientError returns true when this task list o k response has a 4xx status code
func (*TaskListOK) IsCode ¶
func (o *TaskListOK) IsCode(code int) bool
IsCode returns true when this task list o k response a status code equal to that given
func (*TaskListOK) IsRedirect ¶
func (o *TaskListOK) IsRedirect() bool
IsRedirect returns true when this task list o k response has a 3xx status code
func (*TaskListOK) IsServerError ¶
func (o *TaskListOK) IsServerError() bool
IsServerError returns true when this task list o k response has a 5xx status code
func (*TaskListOK) IsSuccess ¶
func (o *TaskListOK) IsSuccess() bool
IsSuccess returns true when this task list o k response has a 2xx status code
func (*TaskListOK) String ¶
func (o *TaskListOK) String() 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 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 NewTaskListParamsWithContext ¶
func NewTaskListParamsWithContext(ctx context.Context) *TaskListParams
NewTaskListParamsWithContext creates a new TaskListParams object with 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 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 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) SetDefaults ¶
func (o *TaskListParams) SetDefaults()
SetDefaults hydrates default values in the task list params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *TaskListParams) WithDefaults() *TaskListParams
WithDefaults hydrates default values in the task list params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 503, 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
func (*TaskListServiceUnavailable) GetPayload ¶
func (o *TaskListServiceUnavailable) GetPayload() *models.ErrorResponse
func (*TaskListServiceUnavailable) IsClientError ¶
func (o *TaskListServiceUnavailable) IsClientError() bool
IsClientError returns true when this task list service unavailable response has a 4xx status code
func (*TaskListServiceUnavailable) IsCode ¶
func (o *TaskListServiceUnavailable) IsCode(code int) bool
IsCode returns true when this task list service unavailable response a status code equal to that given
func (*TaskListServiceUnavailable) IsRedirect ¶
func (o *TaskListServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this task list service unavailable response has a 3xx status code
func (*TaskListServiceUnavailable) IsServerError ¶
func (o *TaskListServiceUnavailable) IsServerError() bool
IsServerError returns true when this task list service unavailable response has a 5xx status code
func (*TaskListServiceUnavailable) IsSuccess ¶
func (o *TaskListServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this task list service unavailable response has a 2xx status code
func (*TaskListServiceUnavailable) String ¶
func (o *TaskListServiceUnavailable) String() string
type TaskLogsInternalServerError ¶
type TaskLogsInternalServerError struct {
Payload *models.ErrorResponse
}
TaskLogsInternalServerError describes a response with status code 500, with default header values.
server error
func NewTaskLogsInternalServerError ¶
func NewTaskLogsInternalServerError() *TaskLogsInternalServerError
NewTaskLogsInternalServerError creates a TaskLogsInternalServerError with default headers values
func (*TaskLogsInternalServerError) Error ¶
func (o *TaskLogsInternalServerError) Error() string
func (*TaskLogsInternalServerError) GetPayload ¶
func (o *TaskLogsInternalServerError) GetPayload() *models.ErrorResponse
func (*TaskLogsInternalServerError) IsClientError ¶
func (o *TaskLogsInternalServerError) IsClientError() bool
IsClientError returns true when this task logs internal server error response has a 4xx status code
func (*TaskLogsInternalServerError) IsCode ¶
func (o *TaskLogsInternalServerError) IsCode(code int) bool
IsCode returns true when this task logs internal server error response a status code equal to that given
func (*TaskLogsInternalServerError) IsRedirect ¶
func (o *TaskLogsInternalServerError) IsRedirect() bool
IsRedirect returns true when this task logs internal server error response has a 3xx status code
func (*TaskLogsInternalServerError) IsServerError ¶
func (o *TaskLogsInternalServerError) IsServerError() bool
IsServerError returns true when this task logs internal server error response has a 5xx status code
func (*TaskLogsInternalServerError) IsSuccess ¶
func (o *TaskLogsInternalServerError) IsSuccess() bool
IsSuccess returns true when this task logs internal server error response has a 2xx status code
func (*TaskLogsInternalServerError) String ¶
func (o *TaskLogsInternalServerError) String() string
type TaskLogsNotFound ¶
type TaskLogsNotFound struct {
Payload *models.ErrorResponse
}
TaskLogsNotFound describes a response with status code 404, with default header values.
no such task
func NewTaskLogsNotFound ¶
func NewTaskLogsNotFound() *TaskLogsNotFound
NewTaskLogsNotFound creates a TaskLogsNotFound with default headers values
func (*TaskLogsNotFound) Error ¶
func (o *TaskLogsNotFound) Error() string
func (*TaskLogsNotFound) GetPayload ¶
func (o *TaskLogsNotFound) GetPayload() *models.ErrorResponse
func (*TaskLogsNotFound) IsClientError ¶
func (o *TaskLogsNotFound) IsClientError() bool
IsClientError returns true when this task logs not found response has a 4xx status code
func (*TaskLogsNotFound) IsCode ¶
func (o *TaskLogsNotFound) IsCode(code int) bool
IsCode returns true when this task logs not found response a status code equal to that given
func (*TaskLogsNotFound) IsRedirect ¶
func (o *TaskLogsNotFound) IsRedirect() bool
IsRedirect returns true when this task logs not found response has a 3xx status code
func (*TaskLogsNotFound) IsServerError ¶
func (o *TaskLogsNotFound) IsServerError() bool
IsServerError returns true when this task logs not found response has a 5xx status code
func (*TaskLogsNotFound) IsSuccess ¶
func (o *TaskLogsNotFound) IsSuccess() bool
IsSuccess returns true when this task logs not found response has a 2xx status code
func (*TaskLogsNotFound) String ¶
func (o *TaskLogsNotFound) String() string
type TaskLogsOK ¶
TaskLogsOK describes a response with status code 200, with default header values.
logs returned as a stream in response body
func NewTaskLogsOK ¶
func NewTaskLogsOK(writer io.Writer) *TaskLogsOK
NewTaskLogsOK creates a TaskLogsOK with default headers values
func (*TaskLogsOK) Error ¶
func (o *TaskLogsOK) Error() string
func (*TaskLogsOK) GetPayload ¶
func (o *TaskLogsOK) GetPayload() io.Writer
func (*TaskLogsOK) IsClientError ¶
func (o *TaskLogsOK) IsClientError() bool
IsClientError returns true when this task logs o k response has a 4xx status code
func (*TaskLogsOK) IsCode ¶
func (o *TaskLogsOK) IsCode(code int) bool
IsCode returns true when this task logs o k response a status code equal to that given
func (*TaskLogsOK) IsRedirect ¶
func (o *TaskLogsOK) IsRedirect() bool
IsRedirect returns true when this task logs o k response has a 3xx status code
func (*TaskLogsOK) IsServerError ¶
func (o *TaskLogsOK) IsServerError() bool
IsServerError returns true when this task logs o k response has a 5xx status code
func (*TaskLogsOK) IsSuccess ¶
func (o *TaskLogsOK) IsSuccess() bool
IsSuccess returns true when this task logs o k response has a 2xx status code
func (*TaskLogsOK) String ¶
func (o *TaskLogsOK) String() string
type TaskLogsParams ¶
type TaskLogsParams struct { /* Details. Show task context and extra details provided to logs. */ Details *bool /* Follow. Keep connection after returning logs. */ Follow *bool /* ID. ID of the task */ ID string /* Since. Only return logs since this time, as a UNIX timestamp */ Since *int64 /* Stderr. Return logs from `stderr` */ Stderr *bool /* Stdout. Return logs from `stdout` */ Stdout *bool /* Tail. Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines. Default: "all" */ Tail *string /* Timestamps. Add timestamps to every log line */ Timestamps *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TaskLogsParams contains all the parameters to send to the API endpoint
for the task logs operation. Typically these are written to a http.Request.
func NewTaskLogsParams ¶
func NewTaskLogsParams() *TaskLogsParams
NewTaskLogsParams creates a new TaskLogsParams 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 NewTaskLogsParamsWithContext ¶
func NewTaskLogsParamsWithContext(ctx context.Context) *TaskLogsParams
NewTaskLogsParamsWithContext creates a new TaskLogsParams object with the ability to set a context for a request.
func NewTaskLogsParamsWithHTTPClient ¶
func NewTaskLogsParamsWithHTTPClient(client *http.Client) *TaskLogsParams
NewTaskLogsParamsWithHTTPClient creates a new TaskLogsParams object with the ability to set a custom HTTPClient for a request.
func NewTaskLogsParamsWithTimeout ¶
func NewTaskLogsParamsWithTimeout(timeout time.Duration) *TaskLogsParams
NewTaskLogsParamsWithTimeout creates a new TaskLogsParams object with the ability to set a timeout on a request.
func (*TaskLogsParams) SetContext ¶
func (o *TaskLogsParams) SetContext(ctx context.Context)
SetContext adds the context to the task logs params
func (*TaskLogsParams) SetDefaults ¶
func (o *TaskLogsParams) SetDefaults()
SetDefaults hydrates default values in the task logs params (not the query body).
All values with no default are reset to their zero value.
func (*TaskLogsParams) SetDetails ¶
func (o *TaskLogsParams) SetDetails(details *bool)
SetDetails adds the details to the task logs params
func (*TaskLogsParams) SetFollow ¶
func (o *TaskLogsParams) SetFollow(follow *bool)
SetFollow adds the follow to the task logs params
func (*TaskLogsParams) SetHTTPClient ¶
func (o *TaskLogsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the task logs params
func (*TaskLogsParams) SetID ¶
func (o *TaskLogsParams) SetID(id string)
SetID adds the id to the task logs params
func (*TaskLogsParams) SetSince ¶
func (o *TaskLogsParams) SetSince(since *int64)
SetSince adds the since to the task logs params
func (*TaskLogsParams) SetStderr ¶
func (o *TaskLogsParams) SetStderr(stderr *bool)
SetStderr adds the stderr to the task logs params
func (*TaskLogsParams) SetStdout ¶
func (o *TaskLogsParams) SetStdout(stdout *bool)
SetStdout adds the stdout to the task logs params
func (*TaskLogsParams) SetTail ¶
func (o *TaskLogsParams) SetTail(tail *string)
SetTail adds the tail to the task logs params
func (*TaskLogsParams) SetTimeout ¶
func (o *TaskLogsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the task logs params
func (*TaskLogsParams) SetTimestamps ¶
func (o *TaskLogsParams) SetTimestamps(timestamps *bool)
SetTimestamps adds the timestamps to the task logs params
func (*TaskLogsParams) WithContext ¶
func (o *TaskLogsParams) WithContext(ctx context.Context) *TaskLogsParams
WithContext adds the context to the task logs params
func (*TaskLogsParams) WithDefaults ¶
func (o *TaskLogsParams) WithDefaults() *TaskLogsParams
WithDefaults hydrates default values in the task logs params (not the query body).
All values with no default are reset to their zero value.
func (*TaskLogsParams) WithDetails ¶
func (o *TaskLogsParams) WithDetails(details *bool) *TaskLogsParams
WithDetails adds the details to the task logs params
func (*TaskLogsParams) WithFollow ¶
func (o *TaskLogsParams) WithFollow(follow *bool) *TaskLogsParams
WithFollow adds the follow to the task logs params
func (*TaskLogsParams) WithHTTPClient ¶
func (o *TaskLogsParams) WithHTTPClient(client *http.Client) *TaskLogsParams
WithHTTPClient adds the HTTPClient to the task logs params
func (*TaskLogsParams) WithID ¶
func (o *TaskLogsParams) WithID(id string) *TaskLogsParams
WithID adds the id to the task logs params
func (*TaskLogsParams) WithSince ¶
func (o *TaskLogsParams) WithSince(since *int64) *TaskLogsParams
WithSince adds the since to the task logs params
func (*TaskLogsParams) WithStderr ¶
func (o *TaskLogsParams) WithStderr(stderr *bool) *TaskLogsParams
WithStderr adds the stderr to the task logs params
func (*TaskLogsParams) WithStdout ¶
func (o *TaskLogsParams) WithStdout(stdout *bool) *TaskLogsParams
WithStdout adds the stdout to the task logs params
func (*TaskLogsParams) WithTail ¶
func (o *TaskLogsParams) WithTail(tail *string) *TaskLogsParams
WithTail adds the tail to the task logs params
func (*TaskLogsParams) WithTimeout ¶
func (o *TaskLogsParams) WithTimeout(timeout time.Duration) *TaskLogsParams
WithTimeout adds the timeout to the task logs params
func (*TaskLogsParams) WithTimestamps ¶
func (o *TaskLogsParams) WithTimestamps(timestamps *bool) *TaskLogsParams
WithTimestamps adds the timestamps to the task logs params
func (*TaskLogsParams) WriteToRequest ¶
func (o *TaskLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TaskLogsReader ¶
type TaskLogsReader struct {
// contains filtered or unexported fields
}
TaskLogsReader is a Reader for the TaskLogs structure.
func (*TaskLogsReader) ReadResponse ¶
func (o *TaskLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TaskLogsServiceUnavailable ¶
type TaskLogsServiceUnavailable struct {
}TaskLogsServiceUnavailable describes a response with status code 503, with default header values.
node is not part of a swarm
func NewTaskLogsServiceUnavailable ¶
func NewTaskLogsServiceUnavailable() *TaskLogsServiceUnavailable
NewTaskLogsServiceUnavailable creates a TaskLogsServiceUnavailable with default headers values
func (*TaskLogsServiceUnavailable) Error ¶
func (o *TaskLogsServiceUnavailable) Error() string
func (*TaskLogsServiceUnavailable) GetPayload ¶
func (o *TaskLogsServiceUnavailable) GetPayload() *models.ErrorResponse
func (*TaskLogsServiceUnavailable) IsClientError ¶
func (o *TaskLogsServiceUnavailable) IsClientError() bool
IsClientError returns true when this task logs service unavailable response has a 4xx status code
func (*TaskLogsServiceUnavailable) IsCode ¶
func (o *TaskLogsServiceUnavailable) IsCode(code int) bool
IsCode returns true when this task logs service unavailable response a status code equal to that given
func (*TaskLogsServiceUnavailable) IsRedirect ¶
func (o *TaskLogsServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this task logs service unavailable response has a 3xx status code
func (*TaskLogsServiceUnavailable) IsServerError ¶
func (o *TaskLogsServiceUnavailable) IsServerError() bool
IsServerError returns true when this task logs service unavailable response has a 5xx status code
func (*TaskLogsServiceUnavailable) IsSuccess ¶
func (o *TaskLogsServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this task logs service unavailable response has a 2xx status code
func (*TaskLogsServiceUnavailable) String ¶
func (o *TaskLogsServiceUnavailable) String() string