containers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for containers API

func (*Client) CreateContainer

func (a *Client) CreateContainer(params *CreateContainerParams) (*CreateContainerCreated, error)

CreateContainer Create a container

func (*Client) DeleteContainer

func (a *Client) DeleteContainer(params *DeleteContainerParams) (*DeleteContainerOK, error)
DeleteContainer Delete a container defition.

This will stop running containers.

func (*Client) DeleteContainerByname

func (a *Client) DeleteContainerByname(params *DeleteContainerBynameParams) (*DeleteContainerBynameOK, error)
DeleteContainerByname Delete a container defition.

This will stop running containers.

func (*Client) GetContainer

func (a *Client) GetContainer(params *GetContainerParams) (*GetContainerOK, error)

GetContainer Get a container definition

func (*Client) GetContainerByname

func (a *Client) GetContainerByname(params *GetContainerBynameParams) (*GetContainerBynameOK, error)

GetContainerByname Get a container definition

func (*Client) ListContainers

func (a *Client) ListContainers(params *ListContainersParams) (*ListContainersOK, error)

ListContainers Get a list of containers

func (*Client) SetContainerState

func (a *Client) SetContainerState(params *SetContainerStateParams) (*SetContainerStateOK, error)
SetContainerState Request a (valid) state for a container.

Valid states to request include: `running`, `exited`, `paused` (paused is not yet implemented)

func (*Client) SetContainerStateByname

func (a *Client) SetContainerStateByname(params *SetContainerStateBynameParams) (*SetContainerStateBynameOK, error)
SetContainerStateByname Request a (valid) state for a container.

Valid states to request include: `running`, `exited`, `paused` (paused is not yet implemented)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateContainer(params *CreateContainerParams) (*CreateContainerCreated, error)

	DeleteContainer(params *DeleteContainerParams) (*DeleteContainerOK, error)

	DeleteContainerByname(params *DeleteContainerBynameParams) (*DeleteContainerBynameOK, error)

	GetContainer(params *GetContainerParams) (*GetContainerOK, error)

	GetContainerByname(params *GetContainerBynameParams) (*GetContainerBynameOK, error)

	ListContainers(params *ListContainersParams) (*ListContainersOK, error)

	SetContainerState(params *SetContainerStateParams) (*SetContainerStateOK, error)

	SetContainerStateByname(params *SetContainerStateBynameParams) (*SetContainerStateBynameOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new containers API client.

type CreateContainerCreated

type CreateContainerCreated struct {
	Payload *models.Container
}

CreateContainerCreated handles this case with default header values.

Container creation succeed

func NewCreateContainerCreated

func NewCreateContainerCreated() *CreateContainerCreated

NewCreateContainerCreated creates a CreateContainerCreated with default headers values

func (*CreateContainerCreated) Error

func (o *CreateContainerCreated) Error() string

func (*CreateContainerCreated) GetPayload

func (o *CreateContainerCreated) GetPayload() *models.Container

type CreateContainerDefault

type CreateContainerDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

CreateContainerDefault handles this case with default header values.

error

func NewCreateContainerDefault

func NewCreateContainerDefault(code int) *CreateContainerDefault

NewCreateContainerDefault creates a CreateContainerDefault with default headers values

func (*CreateContainerDefault) Code

func (o *CreateContainerDefault) Code() int

Code gets the status code for the create container default response

func (*CreateContainerDefault) Error

func (o *CreateContainerDefault) Error() string

func (*CreateContainerDefault) GetPayload

func (o *CreateContainerDefault) GetPayload() *models.Error

type CreateContainerParams

type CreateContainerParams struct {

	/*Container*/
	Container *models.Container

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

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

func NewCreateContainerParams

func NewCreateContainerParams() *CreateContainerParams

NewCreateContainerParams creates a new CreateContainerParams object with the default values initialized.

func NewCreateContainerParamsWithContext

func NewCreateContainerParamsWithContext(ctx context.Context) *CreateContainerParams

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

func NewCreateContainerParamsWithHTTPClient

func NewCreateContainerParamsWithHTTPClient(client *http.Client) *CreateContainerParams

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

func NewCreateContainerParamsWithTimeout

func NewCreateContainerParamsWithTimeout(timeout time.Duration) *CreateContainerParams

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

func (*CreateContainerParams) SetContainer

func (o *CreateContainerParams) SetContainer(container *models.Container)

SetContainer adds the container to the create container params

func (*CreateContainerParams) SetContext

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

SetContext adds the context to the create container params

func (*CreateContainerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create container params

func (*CreateContainerParams) SetTimeout

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

SetTimeout adds the timeout to the create container params

func (*CreateContainerParams) WithContainer

func (o *CreateContainerParams) WithContainer(container *models.Container) *CreateContainerParams

WithContainer adds the container to the create container params

func (*CreateContainerParams) WithContext

WithContext adds the context to the create container params

func (*CreateContainerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create container params

func (*CreateContainerParams) WithTimeout

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

WithTimeout adds the timeout to the create container params

func (*CreateContainerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateContainerReader

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

CreateContainerReader is a Reader for the CreateContainer structure.

func (*CreateContainerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteContainerBynameDefault

type DeleteContainerBynameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteContainerBynameDefault handles this case with default header values.

error

func NewDeleteContainerBynameDefault

func NewDeleteContainerBynameDefault(code int) *DeleteContainerBynameDefault

NewDeleteContainerBynameDefault creates a DeleteContainerBynameDefault with default headers values

func (*DeleteContainerBynameDefault) Code

Code gets the status code for the delete container byname default response

func (*DeleteContainerBynameDefault) Error

func (*DeleteContainerBynameDefault) GetPayload

func (o *DeleteContainerBynameDefault) GetPayload() *models.Error

type DeleteContainerBynameOK

type DeleteContainerBynameOK struct {
	Payload *models.Container
}

DeleteContainerBynameOK handles this case with default header values.

Container deleted

func NewDeleteContainerBynameOK

func NewDeleteContainerBynameOK() *DeleteContainerBynameOK

NewDeleteContainerBynameOK creates a DeleteContainerBynameOK with default headers values

func (*DeleteContainerBynameOK) Error

func (o *DeleteContainerBynameOK) Error() string

func (*DeleteContainerBynameOK) GetPayload

func (o *DeleteContainerBynameOK) GetPayload() *models.Container

type DeleteContainerBynameParams

type DeleteContainerBynameParams struct {

	/*Name*/
	Name string

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

DeleteContainerBynameParams contains all the parameters to send to the API endpoint for the delete container byname operation typically these are written to a http.Request

func NewDeleteContainerBynameParams

func NewDeleteContainerBynameParams() *DeleteContainerBynameParams

NewDeleteContainerBynameParams creates a new DeleteContainerBynameParams object with the default values initialized.

func NewDeleteContainerBynameParamsWithContext

func NewDeleteContainerBynameParamsWithContext(ctx context.Context) *DeleteContainerBynameParams

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

func NewDeleteContainerBynameParamsWithHTTPClient

func NewDeleteContainerBynameParamsWithHTTPClient(client *http.Client) *DeleteContainerBynameParams

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

func NewDeleteContainerBynameParamsWithTimeout

func NewDeleteContainerBynameParamsWithTimeout(timeout time.Duration) *DeleteContainerBynameParams

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

func (*DeleteContainerBynameParams) SetContext

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

SetContext adds the context to the delete container byname params

func (*DeleteContainerBynameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete container byname params

func (*DeleteContainerBynameParams) SetName

func (o *DeleteContainerBynameParams) SetName(name string)

SetName adds the name to the delete container byname params

func (*DeleteContainerBynameParams) SetTimeout

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

SetTimeout adds the timeout to the delete container byname params

func (*DeleteContainerBynameParams) WithContext

WithContext adds the context to the delete container byname params

func (*DeleteContainerBynameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete container byname params

func (*DeleteContainerBynameParams) WithName

WithName adds the name to the delete container byname params

func (*DeleteContainerBynameParams) WithTimeout

WithTimeout adds the timeout to the delete container byname params

func (*DeleteContainerBynameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteContainerBynameReader

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

DeleteContainerBynameReader is a Reader for the DeleteContainerByname structure.

func (*DeleteContainerBynameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteContainerDefault

type DeleteContainerDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteContainerDefault handles this case with default header values.

error

func NewDeleteContainerDefault

func NewDeleteContainerDefault(code int) *DeleteContainerDefault

NewDeleteContainerDefault creates a DeleteContainerDefault with default headers values

func (*DeleteContainerDefault) Code

func (o *DeleteContainerDefault) Code() int

Code gets the status code for the delete container default response

func (*DeleteContainerDefault) Error

func (o *DeleteContainerDefault) Error() string

func (*DeleteContainerDefault) GetPayload

func (o *DeleteContainerDefault) GetPayload() *models.Error

type DeleteContainerOK

type DeleteContainerOK struct {
	Payload *models.Container
}

DeleteContainerOK handles this case with default header values.

Container deleted

func NewDeleteContainerOK

func NewDeleteContainerOK() *DeleteContainerOK

NewDeleteContainerOK creates a DeleteContainerOK with default headers values

func (*DeleteContainerOK) Error

func (o *DeleteContainerOK) Error() string

func (*DeleteContainerOK) GetPayload

func (o *DeleteContainerOK) GetPayload() *models.Container

type DeleteContainerParams

type DeleteContainerParams struct {

	/*ID*/
	ID int64

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

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

func NewDeleteContainerParams

func NewDeleteContainerParams() *DeleteContainerParams

NewDeleteContainerParams creates a new DeleteContainerParams object with the default values initialized.

func NewDeleteContainerParamsWithContext

func NewDeleteContainerParamsWithContext(ctx context.Context) *DeleteContainerParams

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

func NewDeleteContainerParamsWithHTTPClient

func NewDeleteContainerParamsWithHTTPClient(client *http.Client) *DeleteContainerParams

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

func NewDeleteContainerParamsWithTimeout

func NewDeleteContainerParamsWithTimeout(timeout time.Duration) *DeleteContainerParams

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

func (*DeleteContainerParams) SetContext

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

SetContext adds the context to the delete container params

func (*DeleteContainerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete container params

func (*DeleteContainerParams) SetID

func (o *DeleteContainerParams) SetID(id int64)

SetID adds the id to the delete container params

func (*DeleteContainerParams) SetTimeout

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

SetTimeout adds the timeout to the delete container params

func (*DeleteContainerParams) WithContext

WithContext adds the context to the delete container params

func (*DeleteContainerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete container params

func (*DeleteContainerParams) WithID

WithID adds the id to the delete container params

func (*DeleteContainerParams) WithTimeout

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

WithTimeout adds the timeout to the delete container params

func (*DeleteContainerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteContainerReader

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

DeleteContainerReader is a Reader for the DeleteContainer structure.

func (*DeleteContainerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContainerBynameDefault

type GetContainerBynameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetContainerBynameDefault handles this case with default header values.

error

func NewGetContainerBynameDefault

func NewGetContainerBynameDefault(code int) *GetContainerBynameDefault

NewGetContainerBynameDefault creates a GetContainerBynameDefault with default headers values

func (*GetContainerBynameDefault) Code

func (o *GetContainerBynameDefault) Code() int

Code gets the status code for the get container byname default response

func (*GetContainerBynameDefault) Error

func (o *GetContainerBynameDefault) Error() string

func (*GetContainerBynameDefault) GetPayload

func (o *GetContainerBynameDefault) GetPayload() *models.Error

type GetContainerBynameOK

type GetContainerBynameOK struct {
	Payload *models.Container
}

GetContainerBynameOK handles this case with default header values.

Container entry

func NewGetContainerBynameOK

func NewGetContainerBynameOK() *GetContainerBynameOK

NewGetContainerBynameOK creates a GetContainerBynameOK with default headers values

func (*GetContainerBynameOK) Error

func (o *GetContainerBynameOK) Error() string

func (*GetContainerBynameOK) GetPayload

func (o *GetContainerBynameOK) GetPayload() *models.Container

type GetContainerBynameParams

type GetContainerBynameParams struct {

	/*Name*/
	Name string

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

GetContainerBynameParams contains all the parameters to send to the API endpoint for the get container byname operation typically these are written to a http.Request

func NewGetContainerBynameParams

func NewGetContainerBynameParams() *GetContainerBynameParams

NewGetContainerBynameParams creates a new GetContainerBynameParams object with the default values initialized.

func NewGetContainerBynameParamsWithContext

func NewGetContainerBynameParamsWithContext(ctx context.Context) *GetContainerBynameParams

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

func NewGetContainerBynameParamsWithHTTPClient

func NewGetContainerBynameParamsWithHTTPClient(client *http.Client) *GetContainerBynameParams

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

func NewGetContainerBynameParamsWithTimeout

func NewGetContainerBynameParamsWithTimeout(timeout time.Duration) *GetContainerBynameParams

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

func (*GetContainerBynameParams) SetContext

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

SetContext adds the context to the get container byname params

func (*GetContainerBynameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get container byname params

func (*GetContainerBynameParams) SetName

func (o *GetContainerBynameParams) SetName(name string)

SetName adds the name to the get container byname params

func (*GetContainerBynameParams) SetTimeout

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

SetTimeout adds the timeout to the get container byname params

func (*GetContainerBynameParams) WithContext

WithContext adds the context to the get container byname params

func (*GetContainerBynameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get container byname params

func (*GetContainerBynameParams) WithName

WithName adds the name to the get container byname params

func (*GetContainerBynameParams) WithTimeout

WithTimeout adds the timeout to the get container byname params

func (*GetContainerBynameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContainerBynameReader

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

GetContainerBynameReader is a Reader for the GetContainerByname structure.

func (*GetContainerBynameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContainerDefault

type GetContainerDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetContainerDefault handles this case with default header values.

error

func NewGetContainerDefault

func NewGetContainerDefault(code int) *GetContainerDefault

NewGetContainerDefault creates a GetContainerDefault with default headers values

func (*GetContainerDefault) Code

func (o *GetContainerDefault) Code() int

Code gets the status code for the get container default response

func (*GetContainerDefault) Error

func (o *GetContainerDefault) Error() string

func (*GetContainerDefault) GetPayload

func (o *GetContainerDefault) GetPayload() *models.Error

type GetContainerOK

type GetContainerOK struct {
	Payload *models.Container
}

GetContainerOK handles this case with default header values.

Container entry

func NewGetContainerOK

func NewGetContainerOK() *GetContainerOK

NewGetContainerOK creates a GetContainerOK with default headers values

func (*GetContainerOK) Error

func (o *GetContainerOK) Error() string

func (*GetContainerOK) GetPayload

func (o *GetContainerOK) GetPayload() *models.Container

type GetContainerParams

type GetContainerParams struct {

	/*ID*/
	ID int64

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

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

func NewGetContainerParams

func NewGetContainerParams() *GetContainerParams

NewGetContainerParams creates a new GetContainerParams object with the default values initialized.

func NewGetContainerParamsWithContext

func NewGetContainerParamsWithContext(ctx context.Context) *GetContainerParams

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

func NewGetContainerParamsWithHTTPClient

func NewGetContainerParamsWithHTTPClient(client *http.Client) *GetContainerParams

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

func NewGetContainerParamsWithTimeout

func NewGetContainerParamsWithTimeout(timeout time.Duration) *GetContainerParams

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

func (*GetContainerParams) SetContext

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

SetContext adds the context to the get container params

func (*GetContainerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get container params

func (*GetContainerParams) SetID

func (o *GetContainerParams) SetID(id int64)

SetID adds the id to the get container params

func (*GetContainerParams) SetTimeout

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

SetTimeout adds the timeout to the get container params

func (*GetContainerParams) WithContext

WithContext adds the context to the get container params

func (*GetContainerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get container params

func (*GetContainerParams) WithID

WithID adds the id to the get container params

func (*GetContainerParams) WithTimeout

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

WithTimeout adds the timeout to the get container params

func (*GetContainerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetContainerReader

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

GetContainerReader is a Reader for the GetContainer structure.

func (*GetContainerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListContainersDefault

type ListContainersDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ListContainersDefault handles this case with default header values.

error

func NewListContainersDefault

func NewListContainersDefault(code int) *ListContainersDefault

NewListContainersDefault creates a ListContainersDefault with default headers values

func (*ListContainersDefault) Code

func (o *ListContainersDefault) Code() int

Code gets the status code for the list containers default response

func (*ListContainersDefault) Error

func (o *ListContainersDefault) Error() string

func (*ListContainersDefault) GetPayload

func (o *ListContainersDefault) GetPayload() *models.Error

type ListContainersOK

type ListContainersOK struct {
	Payload []*models.Container
}

ListContainersOK handles this case with default header values.

List of containers

func NewListContainersOK

func NewListContainersOK() *ListContainersOK

NewListContainersOK creates a ListContainersOK with default headers values

func (*ListContainersOK) Error

func (o *ListContainersOK) Error() string

func (*ListContainersOK) GetPayload

func (o *ListContainersOK) GetPayload() []*models.Container

type ListContainersParams

type ListContainersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListContainersParams contains all the parameters to send to the API endpoint for the list containers operation typically these are written to a http.Request

func NewListContainersParams

func NewListContainersParams() *ListContainersParams

NewListContainersParams creates a new ListContainersParams object with the default values initialized.

func NewListContainersParamsWithContext

func NewListContainersParamsWithContext(ctx context.Context) *ListContainersParams

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

func NewListContainersParamsWithHTTPClient

func NewListContainersParamsWithHTTPClient(client *http.Client) *ListContainersParams

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

func NewListContainersParamsWithTimeout

func NewListContainersParamsWithTimeout(timeout time.Duration) *ListContainersParams

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

func (*ListContainersParams) SetContext

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

SetContext adds the context to the list containers params

func (*ListContainersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list containers params

func (*ListContainersParams) SetTimeout

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

SetTimeout adds the timeout to the list containers params

func (*ListContainersParams) WithContext

WithContext adds the context to the list containers params

func (*ListContainersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list containers params

func (*ListContainersParams) WithTimeout

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

WithTimeout adds the timeout to the list containers params

func (*ListContainersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListContainersReader

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

ListContainersReader is a Reader for the ListContainers structure.

func (*ListContainersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetContainerStateBynameDefault

type SetContainerStateBynameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

SetContainerStateBynameDefault handles this case with default header values.

error

func NewSetContainerStateBynameDefault

func NewSetContainerStateBynameDefault(code int) *SetContainerStateBynameDefault

NewSetContainerStateBynameDefault creates a SetContainerStateBynameDefault with default headers values

func (*SetContainerStateBynameDefault) Code

Code gets the status code for the set container state byname default response

func (*SetContainerStateBynameDefault) Error

func (*SetContainerStateBynameDefault) GetPayload

func (o *SetContainerStateBynameDefault) GetPayload() *models.Error

type SetContainerStateBynameOK

type SetContainerStateBynameOK struct {
	Payload *models.Container
}

SetContainerStateBynameOK handles this case with default header values.

Container state changed

func NewSetContainerStateBynameOK

func NewSetContainerStateBynameOK() *SetContainerStateBynameOK

NewSetContainerStateBynameOK creates a SetContainerStateBynameOK with default headers values

func (*SetContainerStateBynameOK) Error

func (o *SetContainerStateBynameOK) Error() string

func (*SetContainerStateBynameOK) GetPayload

func (o *SetContainerStateBynameOK) GetPayload() *models.Container

type SetContainerStateBynameParams

type SetContainerStateBynameParams struct {

	/*Name*/
	Name string
	/*State*/
	State string

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

SetContainerStateBynameParams contains all the parameters to send to the API endpoint for the set container state byname operation typically these are written to a http.Request

func NewSetContainerStateBynameParams

func NewSetContainerStateBynameParams() *SetContainerStateBynameParams

NewSetContainerStateBynameParams creates a new SetContainerStateBynameParams object with the default values initialized.

func NewSetContainerStateBynameParamsWithContext

func NewSetContainerStateBynameParamsWithContext(ctx context.Context) *SetContainerStateBynameParams

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

func NewSetContainerStateBynameParamsWithHTTPClient

func NewSetContainerStateBynameParamsWithHTTPClient(client *http.Client) *SetContainerStateBynameParams

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

func NewSetContainerStateBynameParamsWithTimeout

func NewSetContainerStateBynameParamsWithTimeout(timeout time.Duration) *SetContainerStateBynameParams

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

func (*SetContainerStateBynameParams) SetContext

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

SetContext adds the context to the set container state byname params

func (*SetContainerStateBynameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set container state byname params

func (*SetContainerStateBynameParams) SetName

func (o *SetContainerStateBynameParams) SetName(name string)

SetName adds the name to the set container state byname params

func (*SetContainerStateBynameParams) SetState

func (o *SetContainerStateBynameParams) SetState(state string)

SetState adds the state to the set container state byname params

func (*SetContainerStateBynameParams) SetTimeout

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

SetTimeout adds the timeout to the set container state byname params

func (*SetContainerStateBynameParams) WithContext

WithContext adds the context to the set container state byname params

func (*SetContainerStateBynameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set container state byname params

func (*SetContainerStateBynameParams) WithName

WithName adds the name to the set container state byname params

func (*SetContainerStateBynameParams) WithState

WithState adds the state to the set container state byname params

func (*SetContainerStateBynameParams) WithTimeout

WithTimeout adds the timeout to the set container state byname params

func (*SetContainerStateBynameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetContainerStateBynameReader

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

SetContainerStateBynameReader is a Reader for the SetContainerStateByname structure.

func (*SetContainerStateBynameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetContainerStateDefault

type SetContainerStateDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

SetContainerStateDefault handles this case with default header values.

error

func NewSetContainerStateDefault

func NewSetContainerStateDefault(code int) *SetContainerStateDefault

NewSetContainerStateDefault creates a SetContainerStateDefault with default headers values

func (*SetContainerStateDefault) Code

func (o *SetContainerStateDefault) Code() int

Code gets the status code for the set container state default response

func (*SetContainerStateDefault) Error

func (o *SetContainerStateDefault) Error() string

func (*SetContainerStateDefault) GetPayload

func (o *SetContainerStateDefault) GetPayload() *models.Error

type SetContainerStateOK

type SetContainerStateOK struct {
	Payload *models.Container
}

SetContainerStateOK handles this case with default header values.

Container state changed

func NewSetContainerStateOK

func NewSetContainerStateOK() *SetContainerStateOK

NewSetContainerStateOK creates a SetContainerStateOK with default headers values

func (*SetContainerStateOK) Error

func (o *SetContainerStateOK) Error() string

func (*SetContainerStateOK) GetPayload

func (o *SetContainerStateOK) GetPayload() *models.Container

type SetContainerStateParams

type SetContainerStateParams struct {

	/*ID*/
	ID int64
	/*State*/
	State string

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

SetContainerStateParams contains all the parameters to send to the API endpoint for the set container state operation typically these are written to a http.Request

func NewSetContainerStateParams

func NewSetContainerStateParams() *SetContainerStateParams

NewSetContainerStateParams creates a new SetContainerStateParams object with the default values initialized.

func NewSetContainerStateParamsWithContext

func NewSetContainerStateParamsWithContext(ctx context.Context) *SetContainerStateParams

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

func NewSetContainerStateParamsWithHTTPClient

func NewSetContainerStateParamsWithHTTPClient(client *http.Client) *SetContainerStateParams

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

func NewSetContainerStateParamsWithTimeout

func NewSetContainerStateParamsWithTimeout(timeout time.Duration) *SetContainerStateParams

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

func (*SetContainerStateParams) SetContext

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

SetContext adds the context to the set container state params

func (*SetContainerStateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set container state params

func (*SetContainerStateParams) SetID

func (o *SetContainerStateParams) SetID(id int64)

SetID adds the id to the set container state params

func (*SetContainerStateParams) SetState

func (o *SetContainerStateParams) SetState(state string)

SetState adds the state to the set container state params

func (*SetContainerStateParams) SetTimeout

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

SetTimeout adds the timeout to the set container state params

func (*SetContainerStateParams) WithContext

WithContext adds the context to the set container state params

func (*SetContainerStateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set container state params

func (*SetContainerStateParams) WithID

WithID adds the id to the set container state params

func (*SetContainerStateParams) WithState

WithState adds the state to the set container state params

func (*SetContainerStateParams) WithTimeout

WithTimeout adds the timeout to the set container state params

func (*SetContainerStateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetContainerStateReader

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

SetContainerStateReader is a Reader for the SetContainerState structure.

func (*SetContainerStateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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