docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logger *slog.Logger) (*Client, error)

func (*Client) CreateContainer

func (c *Client) CreateContainer(service models.Service, image models.Image) (container.CreateResponse, error)

func (*Client) GetContainerEnv added in v0.2.0

func (c *Client) GetContainerEnv(service models.Service) map[string]string

func (*Client) GetContainerPorts

func (c *Client) GetContainerPorts(service models.Service) []string

func (*Client) ListContainers

func (c *Client) ListContainers() ([]types.Container, error)

func (*Client) RemoveContainer

func (c *Client) RemoveContainer(service models.Service) error

func (*Client) RemoveContainerById

func (c *Client) RemoveContainerById(id string) error

func (*Client) StartContainer

func (c *Client) StartContainer(service models.Service) error

func (*Client) StopContainer

func (c *Client) StopContainer(service models.Service) error

Jump to

Keyboard shortcuts

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