Documentation
¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TaskInspect(params *TaskInspectParams) (*TaskInspectOK, error)
- func (a *Client) TaskList(params *TaskListParams) (*TaskListOK, error)
- func (a *Client) TaskLogs(params *TaskLogsParams, writer io.Writer) (*TaskLogsOK, error)
- 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
- type TaskLogsInternalServerError
- type TaskLogsNotFound
- type TaskLogsOK
- type TaskLogsParams
- func (o *TaskLogsParams) SetContext(ctx context.Context)
- 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) 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
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
func (*Client) TaskLogs ¶
func (a *Client) TaskLogs(params *TaskLogsParams, writer io.Writer) (*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 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 ¶
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
type TaskLogsInternalServerError ¶
type TaskLogsInternalServerError struct {
Payload *models.ErrorResponse
}
TaskLogsInternalServerError handles this case 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
type TaskLogsNotFound ¶
type TaskLogsNotFound struct {
Payload *models.ErrorResponse
}
TaskLogsNotFound handles this case 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
type TaskLogsOK ¶
TaskLogsOK handles this case 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
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. */ 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 values initialized.
func NewTaskLogsParamsWithContext ¶
func NewTaskLogsParamsWithContext(ctx context.Context) *TaskLogsParams
NewTaskLogsParamsWithContext creates a new TaskLogsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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