exec

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

func (*Client) ContainerExecLibpod

func (a *Client) ContainerExecLibpod(params *ContainerExecLibpodParams, opts ...ClientOption) (*ContainerExecLibpodCreated, error)

ContainerExecLibpod 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.ContainerExecLibpodContext instead.

func (*Client) ContainerExecLibpodContext

func (a *Client) ContainerExecLibpodContext(ctx context.Context, params *ContainerExecLibpodParams, opts ...ClientOption) (*ContainerExecLibpodCreated, error)

ContainerExecLibpodContext 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 [ContainerExecLibpodParams.Context] with this method: it would be ignored.

func (*Client) ExecInspectLibpod

func (a *Client) ExecInspectLibpod(params *ExecInspectLibpodParams, opts ...ClientOption) (*ExecInspectLibpodOK, error)

ExecInspectLibpod 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.ExecInspectLibpodContext instead.

func (*Client) ExecInspectLibpodContext

func (a *Client) ExecInspectLibpodContext(ctx context.Context, params *ExecInspectLibpodParams, opts ...ClientOption) (*ExecInspectLibpodOK, error)

ExecInspectLibpodContext inspects an exec instance.

Return low-level information about an exec instance..

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

func (*Client) ExecResizeLibpod

func (a *Client) ExecResizeLibpod(params *ExecResizeLibpodParams, opts ...ClientOption) (*ExecResizeLibpodCreated, error)

ExecResizeLibpod 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.ExecResizeLibpodContext instead.

func (*Client) ExecResizeLibpodContext

func (a *Client) ExecResizeLibpodContext(ctx context.Context, params *ExecResizeLibpodParams, opts ...ClientOption) (*ExecResizeLibpodCreated, error)

ExecResizeLibpodContext 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 [ExecResizeLibpodParams.Context] with this method: it would be ignored.

func (*Client) ExecStartLibpod

func (a *Client) ExecStartLibpod(params *ExecStartLibpodParams, opts ...ClientOption) (*ExecStartLibpodOK, error)

ExecStartLibpod 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. The stream format is the same as the attach endpoint. .

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.ExecStartLibpodContext instead.

func (*Client) ExecStartLibpodContext

func (a *Client) ExecStartLibpodContext(ctx context.Context, params *ExecStartLibpodParams, opts ...ClientOption) (*ExecStartLibpodOK, error)

ExecStartLibpodContext 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. The stream format is the same as the attach endpoint. .

Do not use the deprecated [ExecStartLibpodParams.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 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 {

	// ContainerExecLibpod create an exec instance.
	ContainerExecLibpod(params *ContainerExecLibpodParams, opts ...ClientOption) (*ContainerExecLibpodCreated, error)

	// ContainerExecLibpodContext create an exec instance.
	ContainerExecLibpodContext(ctx context.Context, params *ContainerExecLibpodParams, opts ...ClientOption) (*ContainerExecLibpodCreated, error)

	// ExecInspectLibpod inspect an exec instance.
	ExecInspectLibpod(params *ExecInspectLibpodParams, opts ...ClientOption) (*ExecInspectLibpodOK, error)

	// ExecInspectLibpodContext inspect an exec instance.
	ExecInspectLibpodContext(ctx context.Context, params *ExecInspectLibpodParams, opts ...ClientOption) (*ExecInspectLibpodOK, error)

	// ExecResizeLibpod resize an exec instance.
	ExecResizeLibpod(params *ExecResizeLibpodParams, opts ...ClientOption) (*ExecResizeLibpodCreated, error)

	// ExecResizeLibpodContext resize an exec instance.
	ExecResizeLibpodContext(ctx context.Context, params *ExecResizeLibpodParams, opts ...ClientOption) (*ExecResizeLibpodCreated, error)

	// ExecStartLibpod start an exec instance.
	ExecStartLibpod(params *ExecStartLibpodParams, opts ...ClientOption) (*ExecStartLibpodOK, error)

	// ExecStartLibpodContext start an exec instance.
	ExecStartLibpodContext(ctx context.Context, params *ExecStartLibpodParams, opts ...ClientOption) (*ExecStartLibpodOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new exec API client.

func NewClientWithBasicAuth

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

New creates a new exec 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 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 ContainerExecLibpodBody

type ContainerExecLibpodBody 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"`
}

ContainerExecLibpodBody container exec libpod body

swagger:model ContainerExecLibpodBody

func (*ContainerExecLibpodBody) ContextValidate

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

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

func (*ContainerExecLibpodBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerExecLibpodBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerExecLibpodBody) Validate

Validate validates this container exec libpod body

type ContainerExecLibpodConflict

type ContainerExecLibpodConflict struct {
}

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

container is paused

func NewContainerExecLibpodConflict

func NewContainerExecLibpodConflict() *ContainerExecLibpodConflict

NewContainerExecLibpodConflict creates a ContainerExecLibpodConflict with default headers values

func (*ContainerExecLibpodConflict) Code

func (o *ContainerExecLibpodConflict) Code() int

Code gets the status code for the container exec libpod conflict response

func (*ContainerExecLibpodConflict) Error

func (*ContainerExecLibpodConflict) IsClientError

func (o *ContainerExecLibpodConflict) IsClientError() bool

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

func (*ContainerExecLibpodConflict) IsCode

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

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

func (*ContainerExecLibpodConflict) IsRedirect

func (o *ContainerExecLibpodConflict) IsRedirect() bool

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

func (*ContainerExecLibpodConflict) IsServerError

func (o *ContainerExecLibpodConflict) IsServerError() bool

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

func (*ContainerExecLibpodConflict) IsSuccess

func (o *ContainerExecLibpodConflict) IsSuccess() bool

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

func (*ContainerExecLibpodConflict) String

func (o *ContainerExecLibpodConflict) String() string

type ContainerExecLibpodCreated

type ContainerExecLibpodCreated struct {
}

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

no error

func NewContainerExecLibpodCreated

func NewContainerExecLibpodCreated() *ContainerExecLibpodCreated

NewContainerExecLibpodCreated creates a ContainerExecLibpodCreated with default headers values

func (*ContainerExecLibpodCreated) Code

func (o *ContainerExecLibpodCreated) Code() int

Code gets the status code for the container exec libpod created response

func (*ContainerExecLibpodCreated) Error

func (*ContainerExecLibpodCreated) IsClientError

func (o *ContainerExecLibpodCreated) IsClientError() bool

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

func (*ContainerExecLibpodCreated) IsCode

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

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

func (*ContainerExecLibpodCreated) IsRedirect

func (o *ContainerExecLibpodCreated) IsRedirect() bool

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

func (*ContainerExecLibpodCreated) IsServerError

func (o *ContainerExecLibpodCreated) IsServerError() bool

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

func (*ContainerExecLibpodCreated) IsSuccess

func (o *ContainerExecLibpodCreated) IsSuccess() bool

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

func (*ContainerExecLibpodCreated) String

func (o *ContainerExecLibpodCreated) String() string

type ContainerExecLibpodInternalServerError

type ContainerExecLibpodInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewContainerExecLibpodInternalServerError

func NewContainerExecLibpodInternalServerError() *ContainerExecLibpodInternalServerError

NewContainerExecLibpodInternalServerError creates a ContainerExecLibpodInternalServerError with default headers values

func (*ContainerExecLibpodInternalServerError) Code

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

func (*ContainerExecLibpodInternalServerError) Error

func (*ContainerExecLibpodInternalServerError) GetPayload

func (*ContainerExecLibpodInternalServerError) IsClientError

func (o *ContainerExecLibpodInternalServerError) IsClientError() bool

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

func (*ContainerExecLibpodInternalServerError) IsCode

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

func (*ContainerExecLibpodInternalServerError) IsRedirect

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

func (*ContainerExecLibpodInternalServerError) IsServerError

func (o *ContainerExecLibpodInternalServerError) IsServerError() bool

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

func (*ContainerExecLibpodInternalServerError) IsSuccess

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

func (*ContainerExecLibpodInternalServerError) String

type ContainerExecLibpodNotFound

type ContainerExecLibpodNotFound struct {
	Payload *models.ErrorModel
}

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

No such container

func NewContainerExecLibpodNotFound

func NewContainerExecLibpodNotFound() *ContainerExecLibpodNotFound

NewContainerExecLibpodNotFound creates a ContainerExecLibpodNotFound with default headers values

func (*ContainerExecLibpodNotFound) Code

func (o *ContainerExecLibpodNotFound) Code() int

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

func (*ContainerExecLibpodNotFound) Error

func (*ContainerExecLibpodNotFound) GetPayload

func (*ContainerExecLibpodNotFound) IsClientError

func (o *ContainerExecLibpodNotFound) IsClientError() bool

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

func (*ContainerExecLibpodNotFound) IsCode

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

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

func (*ContainerExecLibpodNotFound) IsRedirect

func (o *ContainerExecLibpodNotFound) IsRedirect() bool

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

func (*ContainerExecLibpodNotFound) IsServerError

func (o *ContainerExecLibpodNotFound) IsServerError() bool

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

func (*ContainerExecLibpodNotFound) IsSuccess

func (o *ContainerExecLibpodNotFound) IsSuccess() bool

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

func (*ContainerExecLibpodNotFound) String

func (o *ContainerExecLibpodNotFound) String() string

type ContainerExecLibpodParams

type ContainerExecLibpodParams struct {

	// Control.
	//
	// Attributes for create
	Control ContainerExecLibpodBody

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

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

ContainerExecLibpodParams contains all the parameters to send to the API endpoint

for the container exec libpod operation.

Typically these are written to a http.Request.

func NewContainerExecLibpodParams

func NewContainerExecLibpodParams() *ContainerExecLibpodParams

NewContainerExecLibpodParams creates a new ContainerExecLibpodParams 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 NewContainerExecLibpodParamsWithContext deprecated

func NewContainerExecLibpodParamsWithContext(ctx context.Context) *ContainerExecLibpodParams

NewContainerExecLibpodParamsWithContext creates a new ContainerExecLibpodParams object with the ability to set a context for a request.

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

func NewContainerExecLibpodParamsWithHTTPClient

func NewContainerExecLibpodParamsWithHTTPClient(client *http.Client) *ContainerExecLibpodParams

NewContainerExecLibpodParamsWithHTTPClient creates a new ContainerExecLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewContainerExecLibpodParamsWithTimeout

func NewContainerExecLibpodParamsWithTimeout(timeout time.Duration) *ContainerExecLibpodParams

NewContainerExecLibpodParamsWithTimeout creates a new ContainerExecLibpodParams object with the ability to set a timeout on a request.

func (*ContainerExecLibpodParams) SetContext deprecated

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

SetContext adds the context to the container exec libpod params.

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

func (*ContainerExecLibpodParams) SetControl

func (o *ContainerExecLibpodParams) SetControl(control ContainerExecLibpodBody)

SetControl adds the control to the container exec libpod params.

func (*ContainerExecLibpodParams) SetDefaults

func (o *ContainerExecLibpodParams) SetDefaults()

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

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

func (*ContainerExecLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the container exec libpod params.

func (*ContainerExecLibpodParams) SetName

func (o *ContainerExecLibpodParams) SetName(name string)

SetName adds the name to the container exec libpod params.

func (*ContainerExecLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the container exec libpod params.

func (*ContainerExecLibpodParams) WithContext deprecated

WithContext adds the context to the container exec libpod params.

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

func (*ContainerExecLibpodParams) WithControl

WithControl adds the control to the container exec libpod params.

func (*ContainerExecLibpodParams) WithDefaults

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

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

func (*ContainerExecLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the container exec libpod params.

func (*ContainerExecLibpodParams) WithName

WithName adds the name to the container exec libpod params.

func (*ContainerExecLibpodParams) WithTimeout

WithTimeout adds the timeout to the container exec libpod params.

func (*ContainerExecLibpodParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type ContainerExecLibpodReader

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

ContainerExecLibpodReader is a Reader for the ContainerExecLibpod structure.

func (*ContainerExecLibpodReader) ReadResponse

func (o *ContainerExecLibpodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ExecInspectLibpodInternalServerError

type ExecInspectLibpodInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewExecInspectLibpodInternalServerError

func NewExecInspectLibpodInternalServerError() *ExecInspectLibpodInternalServerError

NewExecInspectLibpodInternalServerError creates a ExecInspectLibpodInternalServerError with default headers values

func (*ExecInspectLibpodInternalServerError) Code

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

func (*ExecInspectLibpodInternalServerError) Error

func (*ExecInspectLibpodInternalServerError) GetPayload

func (*ExecInspectLibpodInternalServerError) IsClientError

func (o *ExecInspectLibpodInternalServerError) IsClientError() bool

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

func (*ExecInspectLibpodInternalServerError) IsCode

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

func (*ExecInspectLibpodInternalServerError) IsRedirect

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

func (*ExecInspectLibpodInternalServerError) IsServerError

func (o *ExecInspectLibpodInternalServerError) IsServerError() bool

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

func (*ExecInspectLibpodInternalServerError) IsSuccess

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

func (*ExecInspectLibpodInternalServerError) String

type ExecInspectLibpodNotFound

type ExecInspectLibpodNotFound struct {
	Payload *models.ErrorModel
}

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

No such exec instance

func NewExecInspectLibpodNotFound

func NewExecInspectLibpodNotFound() *ExecInspectLibpodNotFound

NewExecInspectLibpodNotFound creates a ExecInspectLibpodNotFound with default headers values

func (*ExecInspectLibpodNotFound) Code

func (o *ExecInspectLibpodNotFound) Code() int

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

func (*ExecInspectLibpodNotFound) Error

func (o *ExecInspectLibpodNotFound) Error() string

func (*ExecInspectLibpodNotFound) GetPayload

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

func (*ExecInspectLibpodNotFound) IsClientError

func (o *ExecInspectLibpodNotFound) IsClientError() bool

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

func (*ExecInspectLibpodNotFound) IsCode

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

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

func (*ExecInspectLibpodNotFound) IsRedirect

func (o *ExecInspectLibpodNotFound) IsRedirect() bool

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

func (*ExecInspectLibpodNotFound) IsServerError

func (o *ExecInspectLibpodNotFound) IsServerError() bool

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

func (*ExecInspectLibpodNotFound) IsSuccess

func (o *ExecInspectLibpodNotFound) IsSuccess() bool

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

func (*ExecInspectLibpodNotFound) String

func (o *ExecInspectLibpodNotFound) String() string

type ExecInspectLibpodOK

type ExecInspectLibpodOK struct {
}

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

no error

func NewExecInspectLibpodOK

func NewExecInspectLibpodOK() *ExecInspectLibpodOK

NewExecInspectLibpodOK creates a ExecInspectLibpodOK with default headers values

func (*ExecInspectLibpodOK) Code

func (o *ExecInspectLibpodOK) Code() int

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

func (*ExecInspectLibpodOK) Error

func (o *ExecInspectLibpodOK) Error() string

func (*ExecInspectLibpodOK) IsClientError

func (o *ExecInspectLibpodOK) IsClientError() bool

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

func (*ExecInspectLibpodOK) IsCode

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

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

func (*ExecInspectLibpodOK) IsRedirect

func (o *ExecInspectLibpodOK) IsRedirect() bool

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

func (*ExecInspectLibpodOK) IsServerError

func (o *ExecInspectLibpodOK) IsServerError() bool

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

func (*ExecInspectLibpodOK) IsSuccess

func (o *ExecInspectLibpodOK) IsSuccess() bool

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

func (*ExecInspectLibpodOK) String

func (o *ExecInspectLibpodOK) String() string

type ExecInspectLibpodParams

type ExecInspectLibpodParams struct {

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

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

ExecInspectLibpodParams contains all the parameters to send to the API endpoint

for the exec inspect libpod operation.

Typically these are written to a http.Request.

func NewExecInspectLibpodParams

func NewExecInspectLibpodParams() *ExecInspectLibpodParams

NewExecInspectLibpodParams creates a new ExecInspectLibpodParams 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 NewExecInspectLibpodParamsWithContext deprecated

func NewExecInspectLibpodParamsWithContext(ctx context.Context) *ExecInspectLibpodParams

NewExecInspectLibpodParamsWithContext creates a new ExecInspectLibpodParams object with the ability to set a context for a request.

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

func NewExecInspectLibpodParamsWithHTTPClient

func NewExecInspectLibpodParamsWithHTTPClient(client *http.Client) *ExecInspectLibpodParams

NewExecInspectLibpodParamsWithHTTPClient creates a new ExecInspectLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewExecInspectLibpodParamsWithTimeout

func NewExecInspectLibpodParamsWithTimeout(timeout time.Duration) *ExecInspectLibpodParams

NewExecInspectLibpodParamsWithTimeout creates a new ExecInspectLibpodParams object with the ability to set a timeout on a request.

func (*ExecInspectLibpodParams) SetContext deprecated

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

SetContext adds the context to the exec inspect libpod params.

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

func (*ExecInspectLibpodParams) SetDefaults

func (o *ExecInspectLibpodParams) SetDefaults()

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

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

func (*ExecInspectLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the exec inspect libpod params.

func (*ExecInspectLibpodParams) SetID

func (o *ExecInspectLibpodParams) SetID(id string)

SetID adds the id to the exec inspect libpod params.

func (*ExecInspectLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the exec inspect libpod params.

func (*ExecInspectLibpodParams) WithContext deprecated

WithContext adds the context to the exec inspect libpod params.

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

func (*ExecInspectLibpodParams) WithDefaults

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

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

func (*ExecInspectLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the exec inspect libpod params.

func (*ExecInspectLibpodParams) WithID

WithID adds the id to the exec inspect libpod params.

func (*ExecInspectLibpodParams) WithTimeout

WithTimeout adds the timeout to the exec inspect libpod params.

func (*ExecInspectLibpodParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type ExecInspectLibpodReader

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

ExecInspectLibpodReader is a Reader for the ExecInspectLibpod structure.

func (*ExecInspectLibpodReader) ReadResponse

func (o *ExecInspectLibpodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ExecResizeLibpodCreated

type ExecResizeLibpodCreated struct {
}

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

no error

func NewExecResizeLibpodCreated

func NewExecResizeLibpodCreated() *ExecResizeLibpodCreated

NewExecResizeLibpodCreated creates a ExecResizeLibpodCreated with default headers values

func (*ExecResizeLibpodCreated) Code

func (o *ExecResizeLibpodCreated) Code() int

Code gets the status code for the exec resize libpod created response

func (*ExecResizeLibpodCreated) Error

func (o *ExecResizeLibpodCreated) Error() string

func (*ExecResizeLibpodCreated) IsClientError

func (o *ExecResizeLibpodCreated) IsClientError() bool

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

func (*ExecResizeLibpodCreated) IsCode

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

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

func (*ExecResizeLibpodCreated) IsRedirect

func (o *ExecResizeLibpodCreated) IsRedirect() bool

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

func (*ExecResizeLibpodCreated) IsServerError

func (o *ExecResizeLibpodCreated) IsServerError() bool

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

func (*ExecResizeLibpodCreated) IsSuccess

func (o *ExecResizeLibpodCreated) IsSuccess() bool

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

func (*ExecResizeLibpodCreated) String

func (o *ExecResizeLibpodCreated) String() string

type ExecResizeLibpodInternalServerError

type ExecResizeLibpodInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewExecResizeLibpodInternalServerError

func NewExecResizeLibpodInternalServerError() *ExecResizeLibpodInternalServerError

NewExecResizeLibpodInternalServerError creates a ExecResizeLibpodInternalServerError with default headers values

func (*ExecResizeLibpodInternalServerError) Code

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

func (*ExecResizeLibpodInternalServerError) Error

func (*ExecResizeLibpodInternalServerError) GetPayload

func (*ExecResizeLibpodInternalServerError) IsClientError

func (o *ExecResizeLibpodInternalServerError) IsClientError() bool

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

func (*ExecResizeLibpodInternalServerError) IsCode

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

func (*ExecResizeLibpodInternalServerError) IsRedirect

func (o *ExecResizeLibpodInternalServerError) IsRedirect() bool

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

func (*ExecResizeLibpodInternalServerError) IsServerError

func (o *ExecResizeLibpodInternalServerError) IsServerError() bool

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

func (*ExecResizeLibpodInternalServerError) IsSuccess

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

func (*ExecResizeLibpodInternalServerError) String

type ExecResizeLibpodNotFound

type ExecResizeLibpodNotFound struct {
	Payload *models.ErrorModel
}

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

No such exec instance

func NewExecResizeLibpodNotFound

func NewExecResizeLibpodNotFound() *ExecResizeLibpodNotFound

NewExecResizeLibpodNotFound creates a ExecResizeLibpodNotFound with default headers values

func (*ExecResizeLibpodNotFound) Code

func (o *ExecResizeLibpodNotFound) Code() int

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

func (*ExecResizeLibpodNotFound) Error

func (o *ExecResizeLibpodNotFound) Error() string

func (*ExecResizeLibpodNotFound) GetPayload

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

func (*ExecResizeLibpodNotFound) IsClientError

func (o *ExecResizeLibpodNotFound) IsClientError() bool

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

func (*ExecResizeLibpodNotFound) IsCode

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

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

func (*ExecResizeLibpodNotFound) IsRedirect

func (o *ExecResizeLibpodNotFound) IsRedirect() bool

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

func (*ExecResizeLibpodNotFound) IsServerError

func (o *ExecResizeLibpodNotFound) IsServerError() bool

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

func (*ExecResizeLibpodNotFound) IsSuccess

func (o *ExecResizeLibpodNotFound) IsSuccess() bool

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

func (*ExecResizeLibpodNotFound) String

func (o *ExecResizeLibpodNotFound) String() string

type ExecResizeLibpodParams

type ExecResizeLibpodParams 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
}

ExecResizeLibpodParams contains all the parameters to send to the API endpoint

for the exec resize libpod operation.

Typically these are written to a http.Request.

func NewExecResizeLibpodParams

func NewExecResizeLibpodParams() *ExecResizeLibpodParams

NewExecResizeLibpodParams creates a new ExecResizeLibpodParams 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 NewExecResizeLibpodParamsWithContext deprecated

func NewExecResizeLibpodParamsWithContext(ctx context.Context) *ExecResizeLibpodParams

NewExecResizeLibpodParamsWithContext creates a new ExecResizeLibpodParams object with the ability to set a context for a request.

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

func NewExecResizeLibpodParamsWithHTTPClient

func NewExecResizeLibpodParamsWithHTTPClient(client *http.Client) *ExecResizeLibpodParams

NewExecResizeLibpodParamsWithHTTPClient creates a new ExecResizeLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewExecResizeLibpodParamsWithTimeout

func NewExecResizeLibpodParamsWithTimeout(timeout time.Duration) *ExecResizeLibpodParams

NewExecResizeLibpodParamsWithTimeout creates a new ExecResizeLibpodParams object with the ability to set a timeout on a request.

func (*ExecResizeLibpodParams) SetContext deprecated

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

SetContext adds the context to the exec resize libpod params.

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

func (*ExecResizeLibpodParams) SetDefaults

func (o *ExecResizeLibpodParams) SetDefaults()

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

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

func (*ExecResizeLibpodParams) SetH

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

SetH adds the h to the exec resize libpod params.

func (*ExecResizeLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the exec resize libpod params.

func (*ExecResizeLibpodParams) SetID

func (o *ExecResizeLibpodParams) SetID(id string)

SetID adds the id to the exec resize libpod params.

func (*ExecResizeLibpodParams) SetRunning

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

SetRunning adds the running to the exec resize libpod params.

func (*ExecResizeLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the exec resize libpod params.

func (*ExecResizeLibpodParams) SetW

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

SetW adds the w to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithContext deprecated

WithContext adds the context to the exec resize libpod params.

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

func (*ExecResizeLibpodParams) WithDefaults

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

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

func (*ExecResizeLibpodParams) WithH

WithH adds the h to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithID

WithID adds the id to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithRunning

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

WithRunning adds the running to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithTimeout

WithTimeout adds the timeout to the exec resize libpod params.

func (*ExecResizeLibpodParams) WithW

WithW adds the w to the exec resize libpod params.

func (*ExecResizeLibpodParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type ExecResizeLibpodReader

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

ExecResizeLibpodReader is a Reader for the ExecResizeLibpod structure.

func (*ExecResizeLibpodReader) ReadResponse

func (o *ExecResizeLibpodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ExecStartLibpodBody

type ExecStartLibpodBody struct {

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

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

	// Height of the TTY session in characters. Tty must be set to true to use it.
	H int64 `json:"h,omitempty"`

	// Width of the TTY session in characters. Tty must be set to true to use it.
	W int64 `json:"w,omitempty"`
}

ExecStartLibpodBody exec start libpod body

swagger:model ExecStartLibpodBody

func (*ExecStartLibpodBody) ContextValidate

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

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

func (*ExecStartLibpodBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ExecStartLibpodBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExecStartLibpodBody) Validate

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

Validate validates this exec start libpod body

type ExecStartLibpodConflict

type ExecStartLibpodConflict struct {
}

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

container is not running.

func NewExecStartLibpodConflict

func NewExecStartLibpodConflict() *ExecStartLibpodConflict

NewExecStartLibpodConflict creates a ExecStartLibpodConflict with default headers values

func (*ExecStartLibpodConflict) Code

func (o *ExecStartLibpodConflict) Code() int

Code gets the status code for the exec start libpod conflict response

func (*ExecStartLibpodConflict) Error

func (o *ExecStartLibpodConflict) Error() string

func (*ExecStartLibpodConflict) IsClientError

func (o *ExecStartLibpodConflict) IsClientError() bool

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

func (*ExecStartLibpodConflict) IsCode

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

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

func (*ExecStartLibpodConflict) IsRedirect

func (o *ExecStartLibpodConflict) IsRedirect() bool

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

func (*ExecStartLibpodConflict) IsServerError

func (o *ExecStartLibpodConflict) IsServerError() bool

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

func (*ExecStartLibpodConflict) IsSuccess

func (o *ExecStartLibpodConflict) IsSuccess() bool

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

func (*ExecStartLibpodConflict) String

func (o *ExecStartLibpodConflict) String() string

type ExecStartLibpodInternalServerError

type ExecStartLibpodInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewExecStartLibpodInternalServerError

func NewExecStartLibpodInternalServerError() *ExecStartLibpodInternalServerError

NewExecStartLibpodInternalServerError creates a ExecStartLibpodInternalServerError with default headers values

func (*ExecStartLibpodInternalServerError) Code

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

func (*ExecStartLibpodInternalServerError) Error

func (*ExecStartLibpodInternalServerError) GetPayload

func (*ExecStartLibpodInternalServerError) IsClientError

func (o *ExecStartLibpodInternalServerError) IsClientError() bool

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

func (*ExecStartLibpodInternalServerError) IsCode

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

func (*ExecStartLibpodInternalServerError) IsRedirect

func (o *ExecStartLibpodInternalServerError) IsRedirect() bool

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

func (*ExecStartLibpodInternalServerError) IsServerError

func (o *ExecStartLibpodInternalServerError) IsServerError() bool

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

func (*ExecStartLibpodInternalServerError) IsSuccess

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

func (*ExecStartLibpodInternalServerError) String

type ExecStartLibpodNotFound

type ExecStartLibpodNotFound struct {
	Payload *models.ErrorModel
}

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

No such exec instance

func NewExecStartLibpodNotFound

func NewExecStartLibpodNotFound() *ExecStartLibpodNotFound

NewExecStartLibpodNotFound creates a ExecStartLibpodNotFound with default headers values

func (*ExecStartLibpodNotFound) Code

func (o *ExecStartLibpodNotFound) Code() int

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

func (*ExecStartLibpodNotFound) Error

func (o *ExecStartLibpodNotFound) Error() string

func (*ExecStartLibpodNotFound) GetPayload

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

func (*ExecStartLibpodNotFound) IsClientError

func (o *ExecStartLibpodNotFound) IsClientError() bool

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

func (*ExecStartLibpodNotFound) IsCode

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

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

func (*ExecStartLibpodNotFound) IsRedirect

func (o *ExecStartLibpodNotFound) IsRedirect() bool

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

func (*ExecStartLibpodNotFound) IsServerError

func (o *ExecStartLibpodNotFound) IsServerError() bool

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

func (*ExecStartLibpodNotFound) IsSuccess

func (o *ExecStartLibpodNotFound) IsSuccess() bool

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

func (*ExecStartLibpodNotFound) String

func (o *ExecStartLibpodNotFound) String() string

type ExecStartLibpodOK

type ExecStartLibpodOK struct {
}

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

no error

func NewExecStartLibpodOK

func NewExecStartLibpodOK() *ExecStartLibpodOK

NewExecStartLibpodOK creates a ExecStartLibpodOK with default headers values

func (*ExecStartLibpodOK) Code

func (o *ExecStartLibpodOK) Code() int

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

func (*ExecStartLibpodOK) Error

func (o *ExecStartLibpodOK) Error() string

func (*ExecStartLibpodOK) IsClientError

func (o *ExecStartLibpodOK) IsClientError() bool

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

func (*ExecStartLibpodOK) IsCode

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

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

func (*ExecStartLibpodOK) IsRedirect

func (o *ExecStartLibpodOK) IsRedirect() bool

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

func (*ExecStartLibpodOK) IsServerError

func (o *ExecStartLibpodOK) IsServerError() bool

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

func (*ExecStartLibpodOK) IsSuccess

func (o *ExecStartLibpodOK) IsSuccess() bool

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

func (*ExecStartLibpodOK) String

func (o *ExecStartLibpodOK) String() string

type ExecStartLibpodParams

type ExecStartLibpodParams struct {

	// Control.
	//
	// Attributes for start
	Control ExecStartLibpodBody

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

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

ExecStartLibpodParams contains all the parameters to send to the API endpoint

for the exec start libpod operation.

Typically these are written to a http.Request.

func NewExecStartLibpodParams

func NewExecStartLibpodParams() *ExecStartLibpodParams

NewExecStartLibpodParams creates a new ExecStartLibpodParams 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 NewExecStartLibpodParamsWithContext deprecated

func NewExecStartLibpodParamsWithContext(ctx context.Context) *ExecStartLibpodParams

NewExecStartLibpodParamsWithContext creates a new ExecStartLibpodParams object with the ability to set a context for a request.

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

func NewExecStartLibpodParamsWithHTTPClient

func NewExecStartLibpodParamsWithHTTPClient(client *http.Client) *ExecStartLibpodParams

NewExecStartLibpodParamsWithHTTPClient creates a new ExecStartLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewExecStartLibpodParamsWithTimeout

func NewExecStartLibpodParamsWithTimeout(timeout time.Duration) *ExecStartLibpodParams

NewExecStartLibpodParamsWithTimeout creates a new ExecStartLibpodParams object with the ability to set a timeout on a request.

func (*ExecStartLibpodParams) SetContext deprecated

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

SetContext adds the context to the exec start libpod params.

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

func (*ExecStartLibpodParams) SetControl

func (o *ExecStartLibpodParams) SetControl(control ExecStartLibpodBody)

SetControl adds the control to the exec start libpod params.

func (*ExecStartLibpodParams) SetDefaults

func (o *ExecStartLibpodParams) SetDefaults()

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

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

func (*ExecStartLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the exec start libpod params.

func (*ExecStartLibpodParams) SetID

func (o *ExecStartLibpodParams) SetID(id string)

SetID adds the id to the exec start libpod params.

func (*ExecStartLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the exec start libpod params.

func (*ExecStartLibpodParams) WithContext deprecated

WithContext adds the context to the exec start libpod params.

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

func (*ExecStartLibpodParams) WithControl

WithControl adds the control to the exec start libpod params.

func (*ExecStartLibpodParams) WithDefaults

func (o *ExecStartLibpodParams) WithDefaults() *ExecStartLibpodParams

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

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

func (*ExecStartLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the exec start libpod params.

func (*ExecStartLibpodParams) WithID

WithID adds the id to the exec start libpod params.

func (*ExecStartLibpodParams) WithTimeout

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

WithTimeout adds the timeout to the exec start libpod params.

func (*ExecStartLibpodParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type ExecStartLibpodReader

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

ExecStartLibpodReader is a Reader for the ExecStartLibpod structure.

func (*ExecStartLibpodReader) ReadResponse

func (o *ExecStartLibpodReader) 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