operations

package
v0.0.0-...-193a162 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 operations API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

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.

**Note**: This endpoint works only for services with the `json-file` or `journald` logging drivers.

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

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

type TaskLogsOK struct {
	Payload string
}

TaskLogsOK handles this case with default header values.

logs returned as a string in response body

func NewTaskLogsOK

func NewTaskLogsOK() *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
	  Return the logs as a stream.

	This will return a `101` HTTP response with a `Connection: upgrade` header, then hijack the HTTP connection to send raw output. For more information about hijacking and the stream format, [see the documentation for the attach endpoint](#operation/ContainerAttach).


	*/
	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 {
	Payload *models.ErrorResponse
}

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

type TaskLogsSwitchingProtocols

type TaskLogsSwitchingProtocols struct {
	Payload io.Writer
}

TaskLogsSwitchingProtocols handles this case with default header values.

logs returned as a stream

func NewTaskLogsSwitchingProtocols

func NewTaskLogsSwitchingProtocols(writer io.Writer) *TaskLogsSwitchingProtocols

NewTaskLogsSwitchingProtocols creates a TaskLogsSwitchingProtocols with default headers values

func (*TaskLogsSwitchingProtocols) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL