containersapi

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerUUIDParam

func GetContainerUUIDParam(c *router.Context) (uuid.UUID, *api.Error)

Types

type Client added in v0.16.0

type Client struct {
	*rest.Client
}

func NewContainersClient added in v0.16.0

func NewContainersClient() *Client

func (*Client) CheckForUpdates added in v0.16.0

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

func (*Client) DeleteContainer added in v0.16.0

func (c *Client) DeleteContainer(ctx context.Context, uuid uuid.UUID) *api.Error

func (*Client) GetContainer added in v0.16.0

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

func (*Client) GetContainerLogs added in v0.16.0

func (c *Client) GetContainerLogs(ctx context.Context, uuid uuid.UUID) (string, *api.Error)

func (*Client) GetContainers added in v0.16.0

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

func (*Client) GetDocker added in v0.16.0

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

func (*Client) GetService added in v0.16.0

func (c *Client) GetService(ctx context.Context, serviceId string) (types.Service, *api.Error)

func (*Client) GetVersions added in v0.16.0

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

func (*Client) InstallService added in v0.16.0

func (c *Client) InstallService(ctx context.Context, serviceId string) (*types.Container, *api.Error)

func (*Client) PatchContainer added in v0.16.0

func (c *Client) PatchContainer(ctx context.Context, uuid uuid.UUID, settings types.ContainerSettings) *api.Error

func (*Client) PatchContainerEnvironment added in v0.16.0

func (c *Client) PatchContainerEnvironment(ctx context.Context, uuid uuid.UUID, env map[string]string) *api.Error

func (*Client) RecreateDocker added in v0.16.0

func (c *Client) RecreateDocker(ctx context.Context, uuid uuid.UUID) *api.Error

func (*Client) StartContainer added in v0.16.0

func (c *Client) StartContainer(ctx context.Context, uuid uuid.UUID) *api.Error

func (*Client) StopContainer added in v0.16.0

func (c *Client) StopContainer(ctx context.Context, uuid uuid.UUID) *api.Error

func (*Client) UpdateServiceContainer added in v0.16.0

func (c *Client) UpdateServiceContainer(ctx context.Context, uuid uuid.UUID) *api.Error

func (*Client) WaitCondition added in v0.16.0

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

Jump to

Keyboard shortcuts

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