containersapi

package
v0.0.0-...-5d951de Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rest.Client
}

func NewContainersClient

func NewContainersClient(ctx context.Context) *Client

func (*Client) AddContainerTag

func (c *Client) AddContainerTag(ctx context.Context, id uuid.UUID, tagID uuid.UUID) error

func (*Client) CheckForUpdates

func (c *Client) CheckForUpdates(ctx context.Context) ([]types.Container, error)

func (*Client) CreateContainer

func (c *Client) CreateContainer(ctx context.Context, opts types.CreateContainerOptions) (types.Container, error)

func (*Client) CreateTag

func (c *Client) CreateTag(ctx context.Context, tag types.Tag) (types.Tag, error)

func (*Client) DeleteContainer

func (c *Client) DeleteContainer(ctx context.Context, id uuid.UUID) error

func (*Client) DeleteTag

func (c *Client) DeleteTag(ctx context.Context, id uuid.UUID) error

func (*Client) GetContainer

func (c *Client) GetContainer(ctx context.Context, id uuid.UUID) (*types.Container, error)

func (*Client) GetContainerLogs

func (c *Client) GetContainerLogs(ctx context.Context, id uuid.UUID) (string, error)

func (*Client) GetContainers

func (c *Client) GetContainers(ctx context.Context) (map[uuid.UUID]*types.Container, error)

func (*Client) GetDocker

func (c *Client) GetDocker(ctx context.Context, id uuid.UUID) (map[string]any, error)

func (*Client) GetTag

func (c *Client) GetTag(ctx context.Context, name string) (types.Tag, error)

func (*Client) GetTags

func (c *Client) GetTags(ctx context.Context) (*types.Tags, error)

func (*Client) GetTemplate

func (c *Client) GetTemplate(ctx context.Context, templateID string) (types.Template, error)

func (*Client) GetVersions

func (c *Client) GetVersions(ctx context.Context, id uuid.UUID) ([]string, error)

func (*Client) PatchContainer

func (c *Client) PatchContainer(ctx context.Context, id uuid.UUID, settings interface{}) error

func (*Client) PatchContainerEnvironment

func (c *Client) PatchContainerEnvironment(ctx context.Context, id uuid.UUID, env []types.EnvVariable) error

func (*Client) RecreateDocker

func (c *Client) RecreateDocker(ctx context.Context, id uuid.UUID) error

func (*Client) StartContainer

func (c *Client) StartContainer(ctx context.Context, id uuid.UUID) error

func (*Client) StopContainer

func (c *Client) StopContainer(ctx context.Context, id uuid.UUID) error

func (*Client) UpdateServiceContainer

func (c *Client) UpdateServiceContainer(ctx context.Context, id uuid.UUID) error

func (*Client) WaitCondition

func (c *Client) WaitCondition(ctx context.Context, id uuid.UUID, condition container.WaitCondition) error

type KernelClient

type KernelClient struct {
	*rest.Client
}

func NewContainersKernelClient

func NewContainersKernelClient(ctx context.Context) *KernelClient

func (*KernelClient) BuildImage

func (c *KernelClient) BuildImage(ctx context.Context, options types.BuildImageOptions) (io.ReadCloser, error)

func (*KernelClient) CreateContainer

func (*KernelClient) CreateVolume

func (c *KernelClient) CreateVolume(ctx context.Context, name string) (volume.Volume, error)

func (*KernelClient) DeleteContainer

func (c *KernelClient) DeleteContainer(ctx context.Context, id string) error

func (*KernelClient) DeleteContainerVolumes

func (c *KernelClient) DeleteContainerVolumes(ctx context.Context, id string) error

func (*KernelClient) DeleteMounts

func (c *KernelClient) DeleteMounts(ctx context.Context, id string) error

func (*KernelClient) DeleteVolume

func (c *KernelClient) DeleteVolume(ctx context.Context, name string) error

func (*KernelClient) GetContainerInfo

func (c *KernelClient) GetContainerInfo(ctx context.Context, id string) (types.InfoContainerResponse, error)

func (*KernelClient) GetContainerStderr

func (c *KernelClient) GetContainerStderr(ctx context.Context, id string) (io.ReadCloser, error)

func (*KernelClient) GetContainerStdout

func (c *KernelClient) GetContainerStdout(ctx context.Context, id string) (io.ReadCloser, error)

func (*KernelClient) GetContainers

func (c *KernelClient) GetContainers(ctx context.Context) ([]types.DockerContainer, error)

func (*KernelClient) GetImageInfo

func (c *KernelClient) GetImageInfo(ctx context.Context, id string) (types.InfoImageResponse, error)

func (*KernelClient) PullImage

func (c *KernelClient) PullImage(ctx context.Context, options types.PullImageOptions) (io.ReadCloser, error)

func (*KernelClient) StartContainer

func (c *KernelClient) StartContainer(ctx context.Context, id string) error

func (*KernelClient) StopContainer

func (c *KernelClient) StopContainer(ctx context.Context, id string) error

func (*KernelClient) WaitContainer

func (c *KernelClient) WaitContainer(ctx context.Context, id string, cond string) error

Jump to

Keyboard shortcuts

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