Documentation ¶
Index ¶
- type Client
- func (c *Client) AddContainerTag(ctx context.Context, id uuid.UUID, tagID uuid.UUID) error
- func (c *Client) CheckForUpdates(ctx context.Context) ([]types.Container, error)
- func (c *Client) CreateContainer(ctx context.Context, opts types.CreateContainerOptions) (types.Container, error)
- func (c *Client) CreateTag(ctx context.Context, tag types.Tag) (types.Tag, error)
- func (c *Client) DeleteContainer(ctx context.Context, id uuid.UUID) error
- func (c *Client) DeleteTag(ctx context.Context, id uuid.UUID) error
- func (c *Client) GetContainer(ctx context.Context, id uuid.UUID) (*types.Container, error)
- func (c *Client) GetContainerLogs(ctx context.Context, id uuid.UUID) (string, error)
- func (c *Client) GetContainers(ctx context.Context) (map[uuid.UUID]*types.Container, error)
- func (c *Client) GetDocker(ctx context.Context, id uuid.UUID) (map[string]any, error)
- func (c *Client) GetTag(ctx context.Context, name string) (types.Tag, error)
- func (c *Client) GetTags(ctx context.Context) (*types.Tags, error)
- func (c *Client) GetTemplate(ctx context.Context, templateID string) (types.Template, error)
- func (c *Client) GetVersions(ctx context.Context, id uuid.UUID) ([]string, error)
- func (c *Client) PatchContainer(ctx context.Context, id uuid.UUID, settings interface{}) error
- func (c *Client) PatchContainerEnvironment(ctx context.Context, id uuid.UUID, env []types.EnvVariable) error
- func (c *Client) RecreateDocker(ctx context.Context, id uuid.UUID) error
- func (c *Client) StartContainer(ctx context.Context, id uuid.UUID) error
- func (c *Client) StopContainer(ctx context.Context, id uuid.UUID) error
- func (c *Client) UpdateServiceContainer(ctx context.Context, id uuid.UUID) error
- func (c *Client) WaitCondition(ctx context.Context, id uuid.UUID, condition container.WaitCondition) error
- type KernelClient
- func (c *KernelClient) BuildImage(ctx context.Context, options types.BuildImageOptions) (io.ReadCloser, error)
- func (c *KernelClient) CreateContainer(ctx context.Context, options types.CreateDockerContainerOptions) (types.CreateContainerResponse, error)
- func (c *KernelClient) CreateVolume(ctx context.Context, name string) (volume.Volume, error)
- func (c *KernelClient) DeleteContainer(ctx context.Context, id string) error
- func (c *KernelClient) DeleteContainerVolumes(ctx context.Context, id string) error
- func (c *KernelClient) DeleteMounts(ctx context.Context, id string) error
- func (c *KernelClient) DeleteVolume(ctx context.Context, name string) error
- func (c *KernelClient) GetContainerInfo(ctx context.Context, id string) (types.InfoContainerResponse, error)
- func (c *KernelClient) GetContainerStderr(ctx context.Context, id string) (io.ReadCloser, error)
- func (c *KernelClient) GetContainerStdout(ctx context.Context, id string) (io.ReadCloser, error)
- func (c *KernelClient) GetContainers(ctx context.Context) ([]types.DockerContainer, error)
- func (c *KernelClient) GetImageInfo(ctx context.Context, id string) (types.InfoImageResponse, error)
- func (c *KernelClient) PullImage(ctx context.Context, options types.PullImageOptions) (io.ReadCloser, error)
- func (c *KernelClient) StartContainer(ctx context.Context, id string) error
- func (c *KernelClient) StopContainer(ctx context.Context, id string) error
- func (c *KernelClient) WaitContainer(ctx context.Context, id string, cond string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewContainersClient ¶
func (*Client) AddContainerTag ¶
func (*Client) CheckForUpdates ¶
func (*Client) CreateContainer ¶
func (*Client) DeleteContainer ¶
func (*Client) GetContainer ¶
func (*Client) GetContainerLogs ¶
func (*Client) GetContainers ¶
func (*Client) GetTemplate ¶
func (*Client) GetVersions ¶
func (*Client) PatchContainer ¶
func (*Client) PatchContainerEnvironment ¶
func (*Client) RecreateDocker ¶
func (*Client) StartContainer ¶
func (*Client) StopContainer ¶
func (*Client) UpdateServiceContainer ¶
func (*Client) WaitCondition ¶
type KernelClient ¶
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 (c *KernelClient) CreateContainer(ctx context.Context, options types.CreateDockerContainerOptions) (types.CreateContainerResponse, error)
func (*KernelClient) CreateVolume ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.