Documentation ¶
Index ¶
- type ContainerConfig
- type ContainerManager
- func (cm *ContainerManager) ContainerStatus(containerId string) string
- func (cm *ContainerManager) CreateNewContainer(ctx context.Context, config *ContainerConfig) error
- func (cm *ContainerManager) ListContainers() ([]ContainerConfig, error)
- func (cm *ContainerManager) LoadAndStartContainers(ctx context.Context, Cmd strslice.StrSlice) error
- func (cm *ContainerManager) RemoveContainer(ctx context.Context, containerID string) error
- func (cm *ContainerManager) RemoveContainerAndImage(ctx context.Context, containerID string) error
- func (cm *ContainerManager) RunAsDaemon(ctx context.Context) error
- func (cm *ContainerManager) UpdateExistingContainer(ctx context.Context, config *ContainerConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerManager ¶
type ContainerManager struct { DockerClient *docker.DockerClient Db *database.Database Logger *logging.Logger HealthChecker *health.HealthChecker // contains filtered or unexported fields }
func NewContainerManager ¶
func NewContainerManager() (*ContainerManager, error)
func (*ContainerManager) ContainerStatus ¶
func (cm *ContainerManager) ContainerStatus(containerId string) string
func (*ContainerManager) CreateNewContainer ¶
func (cm *ContainerManager) CreateNewContainer(ctx context.Context, config *ContainerConfig) error
func (*ContainerManager) ListContainers ¶
func (cm *ContainerManager) ListContainers() ([]ContainerConfig, error)
func (*ContainerManager) LoadAndStartContainers ¶
func (*ContainerManager) RemoveContainer ¶
func (cm *ContainerManager) RemoveContainer(ctx context.Context, containerID string) error
func (*ContainerManager) RemoveContainerAndImage ¶
func (cm *ContainerManager) RemoveContainerAndImage(ctx context.Context, containerID string) error
func (*ContainerManager) RunAsDaemon ¶
func (cm *ContainerManager) RunAsDaemon(ctx context.Context) error
func (*ContainerManager) UpdateExistingContainer ¶
func (cm *ContainerManager) UpdateExistingContainer(ctx context.Context, config *ContainerConfig) error
the config can just contain the container name and the new image name
Click to show internal directories.
Click to hide internal directories.