exec

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

func New

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

New creates a new exec API client.

func (*Client) ContainerExec

func (a *Client) ContainerExec(params *ContainerExecParams) (*ContainerExecCreated, error)

ContainerExec creates an exec instance

Run a command inside a running container.

func (*Client) ExecInspect

func (a *Client) ExecInspect(params *ExecInspectParams) (*ExecInspectOK, error)

ExecInspect inspects an exec instance

Return low-level information about an exec instance.

func (*Client) ExecResize

func (a *Client) ExecResize(params *ExecResizeParams) (*ExecResizeCreated, error)

ExecResize resizes an exec instance

Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance.

func (*Client) ExecStart

func (a *Client) ExecStart(params *ExecStartParams) (*ExecStartOK, error)

ExecStart starts an exec instance

Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ContainerExecConflict

type ContainerExecConflict struct {
	Payload *models.ErrorResponse
}

ContainerExecConflict handles this case with default header values.

container is paused

func NewContainerExecConflict

func NewContainerExecConflict() *ContainerExecConflict

NewContainerExecConflict creates a ContainerExecConflict with default headers values

func (*ContainerExecConflict) Error

func (o *ContainerExecConflict) Error() string

type ContainerExecCreated

type ContainerExecCreated struct {
	Payload *models.IDResponse
}

ContainerExecCreated handles this case with default header values.

no error

func NewContainerExecCreated

func NewContainerExecCreated() *ContainerExecCreated

NewContainerExecCreated creates a ContainerExecCreated with default headers values

func (*ContainerExecCreated) Error

func (o *ContainerExecCreated) Error() string

type ContainerExecInternalServerError

type ContainerExecInternalServerError struct {
	Payload *models.ErrorResponse
}

ContainerExecInternalServerError handles this case with default header values.

Server error

func NewContainerExecInternalServerError

func NewContainerExecInternalServerError() *ContainerExecInternalServerError

NewContainerExecInternalServerError creates a ContainerExecInternalServerError with default headers values

func (*ContainerExecInternalServerError) Error

type ContainerExecNotFound

type ContainerExecNotFound struct {
	Payload *models.ErrorResponse
}

ContainerExecNotFound handles this case with default header values.

no such container

func NewContainerExecNotFound

func NewContainerExecNotFound() *ContainerExecNotFound

NewContainerExecNotFound creates a ContainerExecNotFound with default headers values

func (*ContainerExecNotFound) Error

func (o *ContainerExecNotFound) Error() string

type ContainerExecParams

type ContainerExecParams struct {

	/*ExecConfig
	  Exec configuration

	*/
	ExecConfig *models.ContainerExecParamsBody
	/*ID
	  ID or name of container

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ContainerExecParams contains all the parameters to send to the API endpoint for the container exec operation typically these are written to a http.Request

func NewContainerExecParams

func NewContainerExecParams() *ContainerExecParams

NewContainerExecParams creates a new ContainerExecParams object with the default values initialized.

func NewContainerExecParamsWithContext

func NewContainerExecParamsWithContext(ctx context.Context) *ContainerExecParams

NewContainerExecParamsWithContext creates a new ContainerExecParams object with the default values initialized, and the ability to set a context for a request

func NewContainerExecParamsWithHTTPClient

func NewContainerExecParamsWithHTTPClient(client *http.Client) *ContainerExecParams

NewContainerExecParamsWithHTTPClient creates a new ContainerExecParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewContainerExecParamsWithTimeout

func NewContainerExecParamsWithTimeout(timeout time.Duration) *ContainerExecParams

NewContainerExecParamsWithTimeout creates a new ContainerExecParams object with the default values initialized, and the ability to set a timeout on a request

func (*ContainerExecParams) SetContext

func (o *ContainerExecParams) SetContext(ctx context.Context)

SetContext adds the context to the container exec params

func (*ContainerExecParams) SetExecConfig

func (o *ContainerExecParams) SetExecConfig(execConfig *models.ContainerExecParamsBody)

SetExecConfig adds the execConfig to the container exec params

func (*ContainerExecParams) SetHTTPClient

func (o *ContainerExecParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the container exec params

func (*ContainerExecParams) SetID

func (o *ContainerExecParams) SetID(id string)

SetID adds the id to the container exec params

func (*ContainerExecParams) SetTimeout

func (o *ContainerExecParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the container exec params

func (*ContainerExecParams) WithContext

WithContext adds the context to the container exec params

func (*ContainerExecParams) WithExecConfig

WithExecConfig adds the execConfig to the container exec params

func (*ContainerExecParams) WithHTTPClient

func (o *ContainerExecParams) WithHTTPClient(client *http.Client) *ContainerExecParams

WithHTTPClient adds the HTTPClient to the container exec params

func (*ContainerExecParams) WithID

WithID adds the id to the container exec params

func (*ContainerExecParams) WithTimeout

func (o *ContainerExecParams) WithTimeout(timeout time.Duration) *ContainerExecParams

WithTimeout adds the timeout to the container exec params

func (*ContainerExecParams) WriteToRequest

func (o *ContainerExecParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ContainerExecReader

type ContainerExecReader struct {
	// contains filtered or unexported fields
}

ContainerExecReader is a Reader for the ContainerExec structure.

func (*ContainerExecReader) ReadResponse

func (o *ContainerExecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ExecInspectInternalServerError

type ExecInspectInternalServerError struct {
	Payload *models.ErrorResponse
}

ExecInspectInternalServerError handles this case with default header values.

Server error

func NewExecInspectInternalServerError

func NewExecInspectInternalServerError() *ExecInspectInternalServerError

NewExecInspectInternalServerError creates a ExecInspectInternalServerError with default headers values

func (*ExecInspectInternalServerError) Error

type ExecInspectNotFound

type ExecInspectNotFound struct {
	Payload *models.ErrorResponse
}

ExecInspectNotFound handles this case with default header values.

No such exec instance

func NewExecInspectNotFound

func NewExecInspectNotFound() *ExecInspectNotFound

NewExecInspectNotFound creates a ExecInspectNotFound with default headers values

func (*ExecInspectNotFound) Error

func (o *ExecInspectNotFound) Error() string

type ExecInspectOK

type ExecInspectOK struct {
	Payload *models.ExecInspectOKBody
}

ExecInspectOK handles this case with default header values.

No error

func NewExecInspectOK

func NewExecInspectOK() *ExecInspectOK

NewExecInspectOK creates a ExecInspectOK with default headers values

func (*ExecInspectOK) Error

func (o *ExecInspectOK) Error() string

type ExecInspectParams

type ExecInspectParams struct {

	/*ID
	  Exec instance ID

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ExecInspectParams contains all the parameters to send to the API endpoint for the exec inspect operation typically these are written to a http.Request

func NewExecInspectParams

func NewExecInspectParams() *ExecInspectParams

NewExecInspectParams creates a new ExecInspectParams object with the default values initialized.

func NewExecInspectParamsWithContext

func NewExecInspectParamsWithContext(ctx context.Context) *ExecInspectParams

NewExecInspectParamsWithContext creates a new ExecInspectParams object with the default values initialized, and the ability to set a context for a request

func NewExecInspectParamsWithHTTPClient

func NewExecInspectParamsWithHTTPClient(client *http.Client) *ExecInspectParams

NewExecInspectParamsWithHTTPClient creates a new ExecInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewExecInspectParamsWithTimeout

func NewExecInspectParamsWithTimeout(timeout time.Duration) *ExecInspectParams

NewExecInspectParamsWithTimeout creates a new ExecInspectParams object with the default values initialized, and the ability to set a timeout on a request

func (*ExecInspectParams) SetContext

func (o *ExecInspectParams) SetContext(ctx context.Context)

SetContext adds the context to the exec inspect params

func (*ExecInspectParams) SetHTTPClient

func (o *ExecInspectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the exec inspect params

func (*ExecInspectParams) SetID

func (o *ExecInspectParams) SetID(id string)

SetID adds the id to the exec inspect params

func (*ExecInspectParams) SetTimeout

func (o *ExecInspectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the exec inspect params

func (*ExecInspectParams) WithContext

func (o *ExecInspectParams) WithContext(ctx context.Context) *ExecInspectParams

WithContext adds the context to the exec inspect params

func (*ExecInspectParams) WithHTTPClient

func (o *ExecInspectParams) WithHTTPClient(client *http.Client) *ExecInspectParams

WithHTTPClient adds the HTTPClient to the exec inspect params

func (*ExecInspectParams) WithID

WithID adds the id to the exec inspect params

func (*ExecInspectParams) WithTimeout

func (o *ExecInspectParams) WithTimeout(timeout time.Duration) *ExecInspectParams

WithTimeout adds the timeout to the exec inspect params

func (*ExecInspectParams) WriteToRequest

func (o *ExecInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExecInspectReader

type ExecInspectReader struct {
	// contains filtered or unexported fields
}

ExecInspectReader is a Reader for the ExecInspect structure.

func (*ExecInspectReader) ReadResponse

func (o *ExecInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ExecResizeCreated

type ExecResizeCreated struct {
}

ExecResizeCreated handles this case with default header values.

No error

func NewExecResizeCreated

func NewExecResizeCreated() *ExecResizeCreated

NewExecResizeCreated creates a ExecResizeCreated with default headers values

func (*ExecResizeCreated) Error

func (o *ExecResizeCreated) Error() string

type ExecResizeNotFound

type ExecResizeNotFound struct {
	Payload *models.ErrorResponse
}

ExecResizeNotFound handles this case with default header values.

No such exec instance

func NewExecResizeNotFound

func NewExecResizeNotFound() *ExecResizeNotFound

NewExecResizeNotFound creates a ExecResizeNotFound with default headers values

func (*ExecResizeNotFound) Error

func (o *ExecResizeNotFound) Error() string

type ExecResizeParams

type ExecResizeParams struct {

	/*H
	  Height of the TTY session in characters

	*/
	H *int64
	/*ID
	  Exec instance ID

	*/
	ID string
	/*W
	  Width of the TTY session in characters

	*/
	W *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ExecResizeParams contains all the parameters to send to the API endpoint for the exec resize operation typically these are written to a http.Request

func NewExecResizeParams

func NewExecResizeParams() *ExecResizeParams

NewExecResizeParams creates a new ExecResizeParams object with the default values initialized.

func NewExecResizeParamsWithContext

func NewExecResizeParamsWithContext(ctx context.Context) *ExecResizeParams

NewExecResizeParamsWithContext creates a new ExecResizeParams object with the default values initialized, and the ability to set a context for a request

func NewExecResizeParamsWithHTTPClient

func NewExecResizeParamsWithHTTPClient(client *http.Client) *ExecResizeParams

NewExecResizeParamsWithHTTPClient creates a new ExecResizeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewExecResizeParamsWithTimeout

func NewExecResizeParamsWithTimeout(timeout time.Duration) *ExecResizeParams

NewExecResizeParamsWithTimeout creates a new ExecResizeParams object with the default values initialized, and the ability to set a timeout on a request

func (*ExecResizeParams) SetContext

func (o *ExecResizeParams) SetContext(ctx context.Context)

SetContext adds the context to the exec resize params

func (*ExecResizeParams) SetH

func (o *ExecResizeParams) SetH(h *int64)

SetH adds the h to the exec resize params

func (*ExecResizeParams) SetHTTPClient

func (o *ExecResizeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the exec resize params

func (*ExecResizeParams) SetID

func (o *ExecResizeParams) SetID(id string)

SetID adds the id to the exec resize params

func (*ExecResizeParams) SetTimeout

func (o *ExecResizeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the exec resize params

func (*ExecResizeParams) SetW

func (o *ExecResizeParams) SetW(w *int64)

SetW adds the w to the exec resize params

func (*ExecResizeParams) WithContext

func (o *ExecResizeParams) WithContext(ctx context.Context) *ExecResizeParams

WithContext adds the context to the exec resize params

func (*ExecResizeParams) WithH

func (o *ExecResizeParams) WithH(h *int64) *ExecResizeParams

WithH adds the h to the exec resize params

func (*ExecResizeParams) WithHTTPClient

func (o *ExecResizeParams) WithHTTPClient(client *http.Client) *ExecResizeParams

WithHTTPClient adds the HTTPClient to the exec resize params

func (*ExecResizeParams) WithID

func (o *ExecResizeParams) WithID(id string) *ExecResizeParams

WithID adds the id to the exec resize params

func (*ExecResizeParams) WithTimeout

func (o *ExecResizeParams) WithTimeout(timeout time.Duration) *ExecResizeParams

WithTimeout adds the timeout to the exec resize params

func (*ExecResizeParams) WithW

func (o *ExecResizeParams) WithW(w *int64) *ExecResizeParams

WithW adds the w to the exec resize params

func (*ExecResizeParams) WriteToRequest

func (o *ExecResizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExecResizeReader

type ExecResizeReader struct {
	// contains filtered or unexported fields
}

ExecResizeReader is a Reader for the ExecResize structure.

func (*ExecResizeReader) ReadResponse

func (o *ExecResizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ExecStartConflict

type ExecStartConflict struct {
	Payload *models.ErrorResponse
}

ExecStartConflict handles this case with default header values.

Container is stopped or paused

func NewExecStartConflict

func NewExecStartConflict() *ExecStartConflict

NewExecStartConflict creates a ExecStartConflict with default headers values

func (*ExecStartConflict) Error

func (o *ExecStartConflict) Error() string

type ExecStartNotFound

type ExecStartNotFound struct {
	Payload *models.ErrorResponse
}

ExecStartNotFound handles this case with default header values.

No such exec instance

func NewExecStartNotFound

func NewExecStartNotFound() *ExecStartNotFound

NewExecStartNotFound creates a ExecStartNotFound with default headers values

func (*ExecStartNotFound) Error

func (o *ExecStartNotFound) Error() string

type ExecStartOK

type ExecStartOK struct {
}

ExecStartOK handles this case with default header values.

No error

func NewExecStartOK

func NewExecStartOK() *ExecStartOK

NewExecStartOK creates a ExecStartOK with default headers values

func (*ExecStartOK) Error

func (o *ExecStartOK) Error() string

type ExecStartParams

type ExecStartParams struct {

	/*ExecStartConfig*/
	ExecStartConfig *models.ExecStartParamsBody
	/*ID
	  Exec instance ID

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ExecStartParams contains all the parameters to send to the API endpoint for the exec start operation typically these are written to a http.Request

func NewExecStartParams

func NewExecStartParams() *ExecStartParams

NewExecStartParams creates a new ExecStartParams object with the default values initialized.

func NewExecStartParamsWithContext

func NewExecStartParamsWithContext(ctx context.Context) *ExecStartParams

NewExecStartParamsWithContext creates a new ExecStartParams object with the default values initialized, and the ability to set a context for a request

func NewExecStartParamsWithHTTPClient

func NewExecStartParamsWithHTTPClient(client *http.Client) *ExecStartParams

NewExecStartParamsWithHTTPClient creates a new ExecStartParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewExecStartParamsWithTimeout

func NewExecStartParamsWithTimeout(timeout time.Duration) *ExecStartParams

NewExecStartParamsWithTimeout creates a new ExecStartParams object with the default values initialized, and the ability to set a timeout on a request

func (*ExecStartParams) SetContext

func (o *ExecStartParams) SetContext(ctx context.Context)

SetContext adds the context to the exec start params

func (*ExecStartParams) SetExecStartConfig

func (o *ExecStartParams) SetExecStartConfig(execStartConfig *models.ExecStartParamsBody)

SetExecStartConfig adds the execStartConfig to the exec start params

func (*ExecStartParams) SetHTTPClient

func (o *ExecStartParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the exec start params

func (*ExecStartParams) SetID

func (o *ExecStartParams) SetID(id string)

SetID adds the id to the exec start params

func (*ExecStartParams) SetTimeout

func (o *ExecStartParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the exec start params

func (*ExecStartParams) WithContext

func (o *ExecStartParams) WithContext(ctx context.Context) *ExecStartParams

WithContext adds the context to the exec start params

func (*ExecStartParams) WithExecStartConfig

func (o *ExecStartParams) WithExecStartConfig(execStartConfig *models.ExecStartParamsBody) *ExecStartParams

WithExecStartConfig adds the execStartConfig to the exec start params

func (*ExecStartParams) WithHTTPClient

func (o *ExecStartParams) WithHTTPClient(client *http.Client) *ExecStartParams

WithHTTPClient adds the HTTPClient to the exec start params

func (*ExecStartParams) WithID

func (o *ExecStartParams) WithID(id string) *ExecStartParams

WithID adds the id to the exec start params

func (*ExecStartParams) WithTimeout

func (o *ExecStartParams) WithTimeout(timeout time.Duration) *ExecStartParams

WithTimeout adds the timeout to the exec start params

func (*ExecStartParams) WriteToRequest

func (o *ExecStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExecStartReader

type ExecStartReader struct {
	// contains filtered or unexported fields
}

ExecStartReader is a Reader for the ExecStart structure.

func (*ExecStartReader) ReadResponse

func (o *ExecStartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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