exec_compat

package
v0.0.0-...-fe9a356 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationOctetStream

func WithAcceptApplicationOctetStream(r *runtime.ClientOperation)

WithAcceptApplicationOctetStream sets the Accept header to "application/octet-stream".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxTar

func WithContentTypeApplicationxTar(r *runtime.ClientOperation)

WithContentTypeApplicationxTar sets the Content-Type header to "application/x-tar".

Types

type Client

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

Client for exec compat API.

func (*Client) ContainerExec

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

ContainerExec creates an exec instance.

Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit..

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ContainerExecContext instead.

func (*Client) ContainerExecContext

func (a *Client) ContainerExecContext(ctx context.Context, params *ContainerExecParams, opts ...ClientOption) (*ContainerExecCreated, error)

ContainerExecContext creates an exec instance.

Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit..

Do not use the deprecated [ContainerExecParams.Context] with this method: it would be ignored.

func (*Client) ExecInspect

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

ExecInspect inspects an exec instance.

Return low-level information about an exec instance..

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ExecInspectContext instead.

func (*Client) ExecInspectContext

func (a *Client) ExecInspectContext(ctx context.Context, params *ExecInspectParams, opts ...ClientOption) (*ExecInspectOK, error)

ExecInspectContext inspects an exec instance.

Return low-level information about an exec instance..

Do not use the deprecated [ExecInspectParams.Context] with this method: it would be ignored.

func (*Client) ExecResize

func (a *Client) ExecResize(params *ExecResizeParams, opts ...ClientOption) (*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. .

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ExecResizeContext instead.

func (*Client) ExecResizeContext

func (a *Client) ExecResizeContext(ctx context.Context, params *ExecResizeParams, opts ...ClientOption) (*ExecResizeCreated, error)

ExecResizeContext 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. .

Do not use the deprecated [ExecResizeParams.Context] with this method: it would be ignored.

func (*Client) ExecStart

func (a *Client) ExecStart(params *ExecStartParams, opts ...ClientOption) (*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..

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ExecStartContext instead.

func (*Client) ExecStartContext

func (a *Client) ExecStartContext(ctx context.Context, params *ExecStartParams, opts ...ClientOption) (*ExecStartOK, error)

ExecStartContext 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..

Do not use the deprecated [ExecStartParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {

	// ContainerExec create an exec instance.
	ContainerExec(params *ContainerExecParams, opts ...ClientOption) (*ContainerExecCreated, error)

	// ContainerExecContext create an exec instance.
	ContainerExecContext(ctx context.Context, params *ContainerExecParams, opts ...ClientOption) (*ContainerExecCreated, error)

	// ExecInspect inspect an exec instance.
	ExecInspect(params *ExecInspectParams, opts ...ClientOption) (*ExecInspectOK, error)

	// ExecInspectContext inspect an exec instance.
	ExecInspectContext(ctx context.Context, params *ExecInspectParams, opts ...ClientOption) (*ExecInspectOK, error)

	// ExecResize resize an exec instance.
	ExecResize(params *ExecResizeParams, opts ...ClientOption) (*ExecResizeCreated, error)

	// ExecResizeContext resize an exec instance.
	ExecResizeContext(ctx context.Context, params *ExecResizeParams, opts ...ClientOption) (*ExecResizeCreated, error)

	// ExecStart start an exec instance.
	ExecStart(params *ExecStartParams, opts ...ClientOption) (*ExecStartOK, error)

	// ExecStartContext start an exec instance.
	ExecStartContext(ctx context.Context, params *ExecStartParams, opts ...ClientOption) (*ExecStartOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new exec compat API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new exec compat API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new exec compat API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ContainerExecBody

type ContainerExecBody struct {

	// Attach to stderr of the exec command
	AttachStderr bool `json:"AttachStderr,omitempty"`

	// Attach to stdin of the exec command
	AttachStdin bool `json:"AttachStdin,omitempty"`

	// Attach to stdout of the exec command
	AttachStdout bool `json:"AttachStdout,omitempty"`

	// Command to run, as a string or array of strings.
	Cmd []string `json:"Cmd"`

	// "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _."
	//
	DetachKeys string `json:"DetachKeys,omitempty"`

	// A list of environment variables in the form ["VAR=value", ...]
	Env []string `json:"Env"`

	// Runs the exec process with extended privileges
	Privileged *bool `json:"Privileged,omitempty"`

	// Allocate a pseudo-TTY
	Tty bool `json:"Tty,omitempty"`

	// "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid."
	//
	User string `json:"User,omitempty"`

	// The working directory for the exec process inside the container.
	WorkingDir string `json:"WorkingDir,omitempty"`
}

ContainerExecBody container exec body

swagger:model ContainerExecBody

func (*ContainerExecBody) ContextValidate

func (o *ContainerExecBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this container exec body based on context it is used

func (*ContainerExecBody) MarshalBinary

func (o *ContainerExecBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerExecBody) UnmarshalBinary

func (o *ContainerExecBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerExecBody) Validate

func (o *ContainerExecBody) Validate(_ strfmt.Registry) error

Validate validates this container exec body

type ContainerExecConflict

type ContainerExecConflict struct {
}

ContainerExecConflict describes a response with status code 409, with default header values.

container is paused

func NewContainerExecConflict

func NewContainerExecConflict() *ContainerExecConflict

NewContainerExecConflict creates a ContainerExecConflict with default headers values

func (*ContainerExecConflict) Code

func (o *ContainerExecConflict) Code() int

Code gets the status code for the container exec conflict response

func (*ContainerExecConflict) Error

func (o *ContainerExecConflict) Error() string

func (*ContainerExecConflict) IsClientError

func (o *ContainerExecConflict) IsClientError() bool

IsClientError returns true when this container exec conflict response has a 4xx status code

func (*ContainerExecConflict) IsCode

func (o *ContainerExecConflict) IsCode(code int) bool

IsCode returns true when this container exec conflict response a status code equal to that given

func (*ContainerExecConflict) IsRedirect

func (o *ContainerExecConflict) IsRedirect() bool

IsRedirect returns true when this container exec conflict response has a 3xx status code

func (*ContainerExecConflict) IsServerError

func (o *ContainerExecConflict) IsServerError() bool

IsServerError returns true when this container exec conflict response has a 5xx status code

func (*ContainerExecConflict) IsSuccess

func (o *ContainerExecConflict) IsSuccess() bool

IsSuccess returns true when this container exec conflict response has a 2xx status code

func (*ContainerExecConflict) String

func (o *ContainerExecConflict) String() string

type ContainerExecCreated

type ContainerExecCreated struct {
}

ContainerExecCreated describes a response with status code 201, with default header values.

no error

func NewContainerExecCreated

func NewContainerExecCreated() *ContainerExecCreated

NewContainerExecCreated creates a ContainerExecCreated with default headers values

func (*ContainerExecCreated) Code

func (o *ContainerExecCreated) Code() int

Code gets the status code for the container exec created response

func (*ContainerExecCreated) Error

func (o *ContainerExecCreated) Error() string

func (*ContainerExecCreated) IsClientError

func (o *ContainerExecCreated) IsClientError() bool

IsClientError returns true when this container exec created response has a 4xx status code

func (*ContainerExecCreated) IsCode

func (o *ContainerExecCreated) IsCode(code int) bool

IsCode returns true when this container exec created response a status code equal to that given

func (*ContainerExecCreated) IsRedirect

func (o *ContainerExecCreated) IsRedirect() bool

IsRedirect returns true when this container exec created response has a 3xx status code

func (*ContainerExecCreated) IsServerError

func (o *ContainerExecCreated) IsServerError() bool

IsServerError returns true when this container exec created response has a 5xx status code

func (*ContainerExecCreated) IsSuccess

func (o *ContainerExecCreated) IsSuccess() bool

IsSuccess returns true when this container exec created response has a 2xx status code

func (*ContainerExecCreated) String

func (o *ContainerExecCreated) String() string

type ContainerExecInternalServerError

type ContainerExecInternalServerError struct {
	Payload *models.ErrorModel
}

ContainerExecInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewContainerExecInternalServerError

func NewContainerExecInternalServerError() *ContainerExecInternalServerError

NewContainerExecInternalServerError creates a ContainerExecInternalServerError with default headers values

func (*ContainerExecInternalServerError) Code

Code gets the status code for the container exec internal server error response

func (*ContainerExecInternalServerError) Error

func (*ContainerExecInternalServerError) GetPayload

func (*ContainerExecInternalServerError) IsClientError

func (o *ContainerExecInternalServerError) IsClientError() bool

IsClientError returns true when this container exec internal server error response has a 4xx status code

func (*ContainerExecInternalServerError) IsCode

func (o *ContainerExecInternalServerError) IsCode(code int) bool

IsCode returns true when this container exec internal server error response a status code equal to that given

func (*ContainerExecInternalServerError) IsRedirect

func (o *ContainerExecInternalServerError) IsRedirect() bool

IsRedirect returns true when this container exec internal server error response has a 3xx status code

func (*ContainerExecInternalServerError) IsServerError

func (o *ContainerExecInternalServerError) IsServerError() bool

IsServerError returns true when this container exec internal server error response has a 5xx status code

func (*ContainerExecInternalServerError) IsSuccess

func (o *ContainerExecInternalServerError) IsSuccess() bool

IsSuccess returns true when this container exec internal server error response has a 2xx status code

func (*ContainerExecInternalServerError) String

type ContainerExecNotFound

type ContainerExecNotFound struct {
	Payload *models.ErrorModel
}

ContainerExecNotFound describes a response with status code 404, with default header values.

No such container

func NewContainerExecNotFound

func NewContainerExecNotFound() *ContainerExecNotFound

NewContainerExecNotFound creates a ContainerExecNotFound with default headers values

func (*ContainerExecNotFound) Code

func (o *ContainerExecNotFound) Code() int

Code gets the status code for the container exec not found response

func (*ContainerExecNotFound) Error

func (o *ContainerExecNotFound) Error() string

func (*ContainerExecNotFound) GetPayload

func (o *ContainerExecNotFound) GetPayload() *models.ErrorModel

func (*ContainerExecNotFound) IsClientError

func (o *ContainerExecNotFound) IsClientError() bool

IsClientError returns true when this container exec not found response has a 4xx status code

func (*ContainerExecNotFound) IsCode

func (o *ContainerExecNotFound) IsCode(code int) bool

IsCode returns true when this container exec not found response a status code equal to that given

func (*ContainerExecNotFound) IsRedirect

func (o *ContainerExecNotFound) IsRedirect() bool

IsRedirect returns true when this container exec not found response has a 3xx status code

func (*ContainerExecNotFound) IsServerError

func (o *ContainerExecNotFound) IsServerError() bool

IsServerError returns true when this container exec not found response has a 5xx status code

func (*ContainerExecNotFound) IsSuccess

func (o *ContainerExecNotFound) IsSuccess() bool

IsSuccess returns true when this container exec not found response has a 2xx status code

func (*ContainerExecNotFound) String

func (o *ContainerExecNotFound) String() string

type ContainerExecParams

type ContainerExecParams struct {

	// Control.
	//
	// Attributes for create
	Control ContainerExecBody

	// Name.
	//
	// name of container
	Name string

	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 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 NewContainerExecParamsWithContext deprecated

func NewContainerExecParamsWithContext(ctx context.Context) *ContainerExecParams

NewContainerExecParamsWithContext creates a new ContainerExecParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ContainerExecParams.

func NewContainerExecParamsWithHTTPClient

func NewContainerExecParamsWithHTTPClient(client *http.Client) *ContainerExecParams

NewContainerExecParamsWithHTTPClient creates a new ContainerExecParams object with 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 ability to set a timeout on a request.

func (*ContainerExecParams) SetContext deprecated

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

SetContext adds the context to the container exec params.

Deprecated: use the operation call with context to pass the context instead of ContainerExecParams.

func (*ContainerExecParams) SetControl

func (o *ContainerExecParams) SetControl(control ContainerExecBody)

SetControl adds the control to the container exec params.

func (*ContainerExecParams) SetDefaults

func (o *ContainerExecParams) SetDefaults()

SetDefaults hydrates default values in the container exec params (not the query body).

All values with no default are reset to their zero value.

func (*ContainerExecParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the container exec params.

func (*ContainerExecParams) SetName

func (o *ContainerExecParams) SetName(name string)

SetName adds the name 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 deprecated

WithContext adds the context to the container exec params.

Deprecated: use the operation call with context to pass the context instead of ContainerExecParams.

func (*ContainerExecParams) WithControl

WithControl adds the control to the container exec params.

func (*ContainerExecParams) WithDefaults

func (o *ContainerExecParams) WithDefaults() *ContainerExecParams

WithDefaults hydrates default values in the container exec params (not the query body).

All values with no default are reset to their zero value.

func (*ContainerExecParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the container exec params.

func (*ContainerExecParams) WithName

func (o *ContainerExecParams) WithName(name string) *ContainerExecParams

WithName adds the name 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 runtime.ClientRequest.

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) (any, error)

ReadResponse reads a server response into the received o.

type ExecInspectInternalServerError

type ExecInspectInternalServerError struct {
	Payload *models.ErrorModel
}

ExecInspectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewExecInspectInternalServerError

func NewExecInspectInternalServerError() *ExecInspectInternalServerError

NewExecInspectInternalServerError creates a ExecInspectInternalServerError with default headers values

func (*ExecInspectInternalServerError) Code

Code gets the status code for the exec inspect internal server error response

func (*ExecInspectInternalServerError) Error

func (*ExecInspectInternalServerError) GetPayload

func (*ExecInspectInternalServerError) IsClientError

func (o *ExecInspectInternalServerError) IsClientError() bool

IsClientError returns true when this exec inspect internal server error response has a 4xx status code

func (*ExecInspectInternalServerError) IsCode

func (o *ExecInspectInternalServerError) IsCode(code int) bool

IsCode returns true when this exec inspect internal server error response a status code equal to that given

func (*ExecInspectInternalServerError) IsRedirect

func (o *ExecInspectInternalServerError) IsRedirect() bool

IsRedirect returns true when this exec inspect internal server error response has a 3xx status code

func (*ExecInspectInternalServerError) IsServerError

func (o *ExecInspectInternalServerError) IsServerError() bool

IsServerError returns true when this exec inspect internal server error response has a 5xx status code

func (*ExecInspectInternalServerError) IsSuccess

func (o *ExecInspectInternalServerError) IsSuccess() bool

IsSuccess returns true when this exec inspect internal server error response has a 2xx status code

func (*ExecInspectInternalServerError) String

type ExecInspectNotFound

type ExecInspectNotFound struct {
	Payload *models.ErrorModel
}

ExecInspectNotFound describes a response with status code 404, with default header values.

No such exec instance

func NewExecInspectNotFound

func NewExecInspectNotFound() *ExecInspectNotFound

NewExecInspectNotFound creates a ExecInspectNotFound with default headers values

func (*ExecInspectNotFound) Code

func (o *ExecInspectNotFound) Code() int

Code gets the status code for the exec inspect not found response

func (*ExecInspectNotFound) Error

func (o *ExecInspectNotFound) Error() string

func (*ExecInspectNotFound) GetPayload

func (o *ExecInspectNotFound) GetPayload() *models.ErrorModel

func (*ExecInspectNotFound) IsClientError

func (o *ExecInspectNotFound) IsClientError() bool

IsClientError returns true when this exec inspect not found response has a 4xx status code

func (*ExecInspectNotFound) IsCode

func (o *ExecInspectNotFound) IsCode(code int) bool

IsCode returns true when this exec inspect not found response a status code equal to that given

func (*ExecInspectNotFound) IsRedirect

func (o *ExecInspectNotFound) IsRedirect() bool

IsRedirect returns true when this exec inspect not found response has a 3xx status code

func (*ExecInspectNotFound) IsServerError

func (o *ExecInspectNotFound) IsServerError() bool

IsServerError returns true when this exec inspect not found response has a 5xx status code

func (*ExecInspectNotFound) IsSuccess

func (o *ExecInspectNotFound) IsSuccess() bool

IsSuccess returns true when this exec inspect not found response has a 2xx status code

func (*ExecInspectNotFound) String

func (o *ExecInspectNotFound) String() string

type ExecInspectOK

type ExecInspectOK struct {
	Payload *models.InspectExecSession
}

ExecInspectOK describes a response with status code 200, with default header values.

Exec Session Inspect

func NewExecInspectOK

func NewExecInspectOK() *ExecInspectOK

NewExecInspectOK creates a ExecInspectOK with default headers values

func (*ExecInspectOK) Code

func (o *ExecInspectOK) Code() int

Code gets the status code for the exec inspect o k response

func (*ExecInspectOK) Error

func (o *ExecInspectOK) Error() string

func (*ExecInspectOK) GetPayload

func (o *ExecInspectOK) GetPayload() *models.InspectExecSession

func (*ExecInspectOK) IsClientError

func (o *ExecInspectOK) IsClientError() bool

IsClientError returns true when this exec inspect o k response has a 4xx status code

func (*ExecInspectOK) IsCode

func (o *ExecInspectOK) IsCode(code int) bool

IsCode returns true when this exec inspect o k response a status code equal to that given

func (*ExecInspectOK) IsRedirect

func (o *ExecInspectOK) IsRedirect() bool

IsRedirect returns true when this exec inspect o k response has a 3xx status code

func (*ExecInspectOK) IsServerError

func (o *ExecInspectOK) IsServerError() bool

IsServerError returns true when this exec inspect o k response has a 5xx status code

func (*ExecInspectOK) IsSuccess

func (o *ExecInspectOK) IsSuccess() bool

IsSuccess returns true when this exec inspect o k response has a 2xx status code

func (*ExecInspectOK) String

func (o *ExecInspectOK) String() string

type ExecInspectParams

type ExecInspectParams struct {

	// ID.
	//
	// Exec instance ID
	ID string

	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 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 NewExecInspectParamsWithContext deprecated

func NewExecInspectParamsWithContext(ctx context.Context) *ExecInspectParams

NewExecInspectParamsWithContext creates a new ExecInspectParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ExecInspectParams.

func NewExecInspectParamsWithHTTPClient

func NewExecInspectParamsWithHTTPClient(client *http.Client) *ExecInspectParams

NewExecInspectParamsWithHTTPClient creates a new ExecInspectParams object with 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 ability to set a timeout on a request.

func (*ExecInspectParams) SetContext deprecated

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

SetContext adds the context to the exec inspect params.

Deprecated: use the operation call with context to pass the context instead of ExecInspectParams.

func (*ExecInspectParams) SetDefaults

func (o *ExecInspectParams) SetDefaults()

SetDefaults hydrates default values in the exec inspect params (not the query body).

All values with no default are reset to their zero value.

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 deprecated

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

WithContext adds the context to the exec inspect params.

Deprecated: use the operation call with context to pass the context instead of ExecInspectParams.

func (*ExecInspectParams) WithDefaults

func (o *ExecInspectParams) WithDefaults() *ExecInspectParams

WithDefaults hydrates default values in the exec inspect params (not the query body).

All values with no default are reset to their zero value.

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 runtime.ClientRequest.

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) (any, error)

ReadResponse reads a server response into the received o.

type ExecResizeCreated

type ExecResizeCreated struct {
}

ExecResizeCreated describes a response with status code 201, with default header values.

no error

func NewExecResizeCreated

func NewExecResizeCreated() *ExecResizeCreated

NewExecResizeCreated creates a ExecResizeCreated with default headers values

func (*ExecResizeCreated) Code

func (o *ExecResizeCreated) Code() int

Code gets the status code for the exec resize created response

func (*ExecResizeCreated) Error

func (o *ExecResizeCreated) Error() string

func (*ExecResizeCreated) IsClientError

func (o *ExecResizeCreated) IsClientError() bool

IsClientError returns true when this exec resize created response has a 4xx status code

func (*ExecResizeCreated) IsCode

func (o *ExecResizeCreated) IsCode(code int) bool

IsCode returns true when this exec resize created response a status code equal to that given

func (*ExecResizeCreated) IsRedirect

func (o *ExecResizeCreated) IsRedirect() bool

IsRedirect returns true when this exec resize created response has a 3xx status code

func (*ExecResizeCreated) IsServerError

func (o *ExecResizeCreated) IsServerError() bool

IsServerError returns true when this exec resize created response has a 5xx status code

func (*ExecResizeCreated) IsSuccess

func (o *ExecResizeCreated) IsSuccess() bool

IsSuccess returns true when this exec resize created response has a 2xx status code

func (*ExecResizeCreated) String

func (o *ExecResizeCreated) String() string

type ExecResizeInternalServerError

type ExecResizeInternalServerError struct {
	Payload *models.ErrorModel
}

ExecResizeInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewExecResizeInternalServerError

func NewExecResizeInternalServerError() *ExecResizeInternalServerError

NewExecResizeInternalServerError creates a ExecResizeInternalServerError with default headers values

func (*ExecResizeInternalServerError) Code

Code gets the status code for the exec resize internal server error response

func (*ExecResizeInternalServerError) Error

func (*ExecResizeInternalServerError) GetPayload

func (*ExecResizeInternalServerError) IsClientError

func (o *ExecResizeInternalServerError) IsClientError() bool

IsClientError returns true when this exec resize internal server error response has a 4xx status code

func (*ExecResizeInternalServerError) IsCode

func (o *ExecResizeInternalServerError) IsCode(code int) bool

IsCode returns true when this exec resize internal server error response a status code equal to that given

func (*ExecResizeInternalServerError) IsRedirect

func (o *ExecResizeInternalServerError) IsRedirect() bool

IsRedirect returns true when this exec resize internal server error response has a 3xx status code

func (*ExecResizeInternalServerError) IsServerError

func (o *ExecResizeInternalServerError) IsServerError() bool

IsServerError returns true when this exec resize internal server error response has a 5xx status code

func (*ExecResizeInternalServerError) IsSuccess

func (o *ExecResizeInternalServerError) IsSuccess() bool

IsSuccess returns true when this exec resize internal server error response has a 2xx status code

func (*ExecResizeInternalServerError) String

type ExecResizeNotFound

type ExecResizeNotFound struct {
	Payload *models.ErrorModel
}

ExecResizeNotFound describes a response with status code 404, with default header values.

No such exec instance

func NewExecResizeNotFound

func NewExecResizeNotFound() *ExecResizeNotFound

NewExecResizeNotFound creates a ExecResizeNotFound with default headers values

func (*ExecResizeNotFound) Code

func (o *ExecResizeNotFound) Code() int

Code gets the status code for the exec resize not found response

func (*ExecResizeNotFound) Error

func (o *ExecResizeNotFound) Error() string

func (*ExecResizeNotFound) GetPayload

func (o *ExecResizeNotFound) GetPayload() *models.ErrorModel

func (*ExecResizeNotFound) IsClientError

func (o *ExecResizeNotFound) IsClientError() bool

IsClientError returns true when this exec resize not found response has a 4xx status code

func (*ExecResizeNotFound) IsCode

func (o *ExecResizeNotFound) IsCode(code int) bool

IsCode returns true when this exec resize not found response a status code equal to that given

func (*ExecResizeNotFound) IsRedirect

func (o *ExecResizeNotFound) IsRedirect() bool

IsRedirect returns true when this exec resize not found response has a 3xx status code

func (*ExecResizeNotFound) IsServerError

func (o *ExecResizeNotFound) IsServerError() bool

IsServerError returns true when this exec resize not found response has a 5xx status code

func (*ExecResizeNotFound) IsSuccess

func (o *ExecResizeNotFound) IsSuccess() bool

IsSuccess returns true when this exec resize not found response has a 2xx status code

func (*ExecResizeNotFound) String

func (o *ExecResizeNotFound) String() string

type ExecResizeParams

type ExecResizeParams struct {

	// H.
	//
	// Height of the TTY session in characters
	H *int64

	// ID.
	//
	// Exec instance ID
	ID string

	// Running.
	//
	// Ignore containers not running errors
	Running *bool

	// W.
	//
	// Width of the TTY session in characters
	W *int64

	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 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 NewExecResizeParamsWithContext deprecated

func NewExecResizeParamsWithContext(ctx context.Context) *ExecResizeParams

NewExecResizeParamsWithContext creates a new ExecResizeParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ExecResizeParams.

func NewExecResizeParamsWithHTTPClient

func NewExecResizeParamsWithHTTPClient(client *http.Client) *ExecResizeParams

NewExecResizeParamsWithHTTPClient creates a new ExecResizeParams object with 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 ability to set a timeout on a request.

func (*ExecResizeParams) SetContext deprecated

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

SetContext adds the context to the exec resize params.

Deprecated: use the operation call with context to pass the context instead of ExecResizeParams.

func (*ExecResizeParams) SetDefaults

func (o *ExecResizeParams) SetDefaults()

SetDefaults hydrates default values in the exec resize params (not the query body).

All values with no default are reset to their zero value.

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) SetRunning

func (o *ExecResizeParams) SetRunning(running *bool)

SetRunning adds the running 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 deprecated

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

WithContext adds the context to the exec resize params.

Deprecated: use the operation call with context to pass the context instead of ExecResizeParams.

func (*ExecResizeParams) WithDefaults

func (o *ExecResizeParams) WithDefaults() *ExecResizeParams

WithDefaults hydrates default values in the exec resize params (not the query body).

All values with no default are reset to their zero value.

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) WithRunning

func (o *ExecResizeParams) WithRunning(running *bool) *ExecResizeParams

WithRunning adds the running 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 runtime.ClientRequest.

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) (any, error)

ReadResponse reads a server response into the received o.

type ExecStartBody

type ExecStartBody struct {

	// Detach from the command. Not presently supported.
	Detach bool `json:"Detach,omitempty"`

	// Allocate a pseudo-TTY. Presently ignored.
	Tty bool `json:"Tty,omitempty"`
}

ExecStartBody exec start body

swagger:model ExecStartBody

func (*ExecStartBody) ContextValidate

func (o *ExecStartBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this exec start body based on context it is used

func (*ExecStartBody) MarshalBinary

func (o *ExecStartBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExecStartBody) UnmarshalBinary

func (o *ExecStartBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExecStartBody) Validate

func (o *ExecStartBody) Validate(_ strfmt.Registry) error

Validate validates this exec start body

type ExecStartConflict

type ExecStartConflict struct {
}

ExecStartConflict describes a response with status code 409, with default header values.

container is not running

func NewExecStartConflict

func NewExecStartConflict() *ExecStartConflict

NewExecStartConflict creates a ExecStartConflict with default headers values

func (*ExecStartConflict) Code

func (o *ExecStartConflict) Code() int

Code gets the status code for the exec start conflict response

func (*ExecStartConflict) Error

func (o *ExecStartConflict) Error() string

func (*ExecStartConflict) IsClientError

func (o *ExecStartConflict) IsClientError() bool

IsClientError returns true when this exec start conflict response has a 4xx status code

func (*ExecStartConflict) IsCode

func (o *ExecStartConflict) IsCode(code int) bool

IsCode returns true when this exec start conflict response a status code equal to that given

func (*ExecStartConflict) IsRedirect

func (o *ExecStartConflict) IsRedirect() bool

IsRedirect returns true when this exec start conflict response has a 3xx status code

func (*ExecStartConflict) IsServerError

func (o *ExecStartConflict) IsServerError() bool

IsServerError returns true when this exec start conflict response has a 5xx status code

func (*ExecStartConflict) IsSuccess

func (o *ExecStartConflict) IsSuccess() bool

IsSuccess returns true when this exec start conflict response has a 2xx status code

func (*ExecStartConflict) String

func (o *ExecStartConflict) String() string

type ExecStartInternalServerError

type ExecStartInternalServerError struct {
	Payload *models.ErrorModel
}

ExecStartInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewExecStartInternalServerError

func NewExecStartInternalServerError() *ExecStartInternalServerError

NewExecStartInternalServerError creates a ExecStartInternalServerError with default headers values

func (*ExecStartInternalServerError) Code

Code gets the status code for the exec start internal server error response

func (*ExecStartInternalServerError) Error

func (*ExecStartInternalServerError) GetPayload

func (*ExecStartInternalServerError) IsClientError

func (o *ExecStartInternalServerError) IsClientError() bool

IsClientError returns true when this exec start internal server error response has a 4xx status code

func (*ExecStartInternalServerError) IsCode

func (o *ExecStartInternalServerError) IsCode(code int) bool

IsCode returns true when this exec start internal server error response a status code equal to that given

func (*ExecStartInternalServerError) IsRedirect

func (o *ExecStartInternalServerError) IsRedirect() bool

IsRedirect returns true when this exec start internal server error response has a 3xx status code

func (*ExecStartInternalServerError) IsServerError

func (o *ExecStartInternalServerError) IsServerError() bool

IsServerError returns true when this exec start internal server error response has a 5xx status code

func (*ExecStartInternalServerError) IsSuccess

func (o *ExecStartInternalServerError) IsSuccess() bool

IsSuccess returns true when this exec start internal server error response has a 2xx status code

func (*ExecStartInternalServerError) String

type ExecStartNotFound

type ExecStartNotFound struct {
	Payload *models.ErrorModel
}

ExecStartNotFound describes a response with status code 404, with default header values.

No such exec instance

func NewExecStartNotFound

func NewExecStartNotFound() *ExecStartNotFound

NewExecStartNotFound creates a ExecStartNotFound with default headers values

func (*ExecStartNotFound) Code

func (o *ExecStartNotFound) Code() int

Code gets the status code for the exec start not found response

func (*ExecStartNotFound) Error

func (o *ExecStartNotFound) Error() string

func (*ExecStartNotFound) GetPayload

func (o *ExecStartNotFound) GetPayload() *models.ErrorModel

func (*ExecStartNotFound) IsClientError

func (o *ExecStartNotFound) IsClientError() bool

IsClientError returns true when this exec start not found response has a 4xx status code

func (*ExecStartNotFound) IsCode

func (o *ExecStartNotFound) IsCode(code int) bool

IsCode returns true when this exec start not found response a status code equal to that given

func (*ExecStartNotFound) IsRedirect

func (o *ExecStartNotFound) IsRedirect() bool

IsRedirect returns true when this exec start not found response has a 3xx status code

func (*ExecStartNotFound) IsServerError

func (o *ExecStartNotFound) IsServerError() bool

IsServerError returns true when this exec start not found response has a 5xx status code

func (*ExecStartNotFound) IsSuccess

func (o *ExecStartNotFound) IsSuccess() bool

IsSuccess returns true when this exec start not found response has a 2xx status code

func (*ExecStartNotFound) String

func (o *ExecStartNotFound) String() string

type ExecStartOK

type ExecStartOK struct {
}

ExecStartOK describes a response with status code 200, with default header values.

no error

func NewExecStartOK

func NewExecStartOK() *ExecStartOK

NewExecStartOK creates a ExecStartOK with default headers values

func (*ExecStartOK) Code

func (o *ExecStartOK) Code() int

Code gets the status code for the exec start o k response

func (*ExecStartOK) Error

func (o *ExecStartOK) Error() string

func (*ExecStartOK) IsClientError

func (o *ExecStartOK) IsClientError() bool

IsClientError returns true when this exec start o k response has a 4xx status code

func (*ExecStartOK) IsCode

func (o *ExecStartOK) IsCode(code int) bool

IsCode returns true when this exec start o k response a status code equal to that given

func (*ExecStartOK) IsRedirect

func (o *ExecStartOK) IsRedirect() bool

IsRedirect returns true when this exec start o k response has a 3xx status code

func (*ExecStartOK) IsServerError

func (o *ExecStartOK) IsServerError() bool

IsServerError returns true when this exec start o k response has a 5xx status code

func (*ExecStartOK) IsSuccess

func (o *ExecStartOK) IsSuccess() bool

IsSuccess returns true when this exec start o k response has a 2xx status code

func (*ExecStartOK) String

func (o *ExecStartOK) String() string

type ExecStartParams

type ExecStartParams struct {

	// Control.
	//
	// Attributes for start
	Control ExecStartBody

	// ID.
	//
	// Exec instance ID
	ID string

	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 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 NewExecStartParamsWithContext deprecated

func NewExecStartParamsWithContext(ctx context.Context) *ExecStartParams

NewExecStartParamsWithContext creates a new ExecStartParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ExecStartParams.

func NewExecStartParamsWithHTTPClient

func NewExecStartParamsWithHTTPClient(client *http.Client) *ExecStartParams

NewExecStartParamsWithHTTPClient creates a new ExecStartParams object with 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 ability to set a timeout on a request.

func (*ExecStartParams) SetContext deprecated

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

SetContext adds the context to the exec start params.

Deprecated: use the operation call with context to pass the context instead of ExecStartParams.

func (*ExecStartParams) SetControl

func (o *ExecStartParams) SetControl(control ExecStartBody)

SetControl adds the control to the exec start params.

func (*ExecStartParams) SetDefaults

func (o *ExecStartParams) SetDefaults()

SetDefaults hydrates default values in the exec start params (not the query body).

All values with no default are reset to their zero value.

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 deprecated

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

WithContext adds the context to the exec start params.

Deprecated: use the operation call with context to pass the context instead of ExecStartParams.

func (*ExecStartParams) WithControl

func (o *ExecStartParams) WithControl(control ExecStartBody) *ExecStartParams

WithControl adds the control to the exec start params.

func (*ExecStartParams) WithDefaults

func (o *ExecStartParams) WithDefaults() *ExecStartParams

WithDefaults hydrates default values in the exec start params (not the query body).

All values with no default are reset to their zero value.

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 runtime.ClientRequest.

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) (any, 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