docker

package
v0.0.0-...-341faf9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name string
	ID   string
}

type ContainerGroup

type ContainerGroup struct {
	Name string
	// contains filtered or unexported fields
}

func NewContainerGroup

func NewContainerGroup(name string, containers []*Container, controller *DockerController) *ContainerGroup

func (*ContainerGroup) AllContainersArePaused

func (group *ContainerGroup) AllContainersArePaused() bool

func (*ContainerGroup) AllContainersAreRunning

func (group *ContainerGroup) AllContainersAreRunning() bool

func (*ContainerGroup) AllContainersAreStopped

func (group *ContainerGroup) AllContainersAreStopped() bool

func (*ContainerGroup) AnyContainerIsPaused

func (group *ContainerGroup) AnyContainerIsPaused() bool

func (*ContainerGroup) AnyContainerIsRunning

func (group *ContainerGroup) AnyContainerIsRunning() bool

func (*ContainerGroup) AnyContainerIsStopped

func (group *ContainerGroup) AnyContainerIsStopped() bool

func (*ContainerGroup) ContainerExists

func (group *ContainerGroup) ContainerExists(containerId string) bool

func (*ContainerGroup) ContainerIsPaused

func (group *ContainerGroup) ContainerIsPaused(containerId string) (bool, error)

func (*ContainerGroup) ContainerIsRunning

func (group *ContainerGroup) ContainerIsRunning(containerId string) (bool, error)

func (*ContainerGroup) GetContainers

func (group *ContainerGroup) GetContainers() []*Container

func (*ContainerGroup) Pause

func (group *ContainerGroup) Pause()

func (*ContainerGroup) PauseContainer

func (group *ContainerGroup) PauseContainer(containerId string)

func (*ContainerGroup) Restart

func (group *ContainerGroup) Restart()

func (*ContainerGroup) RestartContainer

func (group *ContainerGroup) RestartContainer(containerId string)

func (*ContainerGroup) Start

func (group *ContainerGroup) Start()

func (*ContainerGroup) StartContainer

func (group *ContainerGroup) StartContainer(containerId string)

func (*ContainerGroup) Stop

func (group *ContainerGroup) Stop()

func (*ContainerGroup) StopContainer

func (group *ContainerGroup) StopContainer(containerId string)

func (*ContainerGroup) Unpause

func (group *ContainerGroup) Unpause()

func (*ContainerGroup) UnpauseContainer

func (group *ContainerGroup) UnpauseContainer(containerId string)

type DockerController

type DockerController struct {
	// contains filtered or unexported fields
}

func NewDockerController

func NewDockerController() *DockerController

func (*DockerController) ContainerIsPaused

func (controller *DockerController) ContainerIsPaused(containerId string) bool

func (*DockerController) ContainerIsRunning

func (controller *DockerController) ContainerIsRunning(containerId string) bool

func (*DockerController) NewContainer

func (controller *DockerController) NewContainer(containerName string) (*Container, error)

func (*DockerController) NewContainerGroup

func (controller *DockerController) NewContainerGroup(groupName string) (*ContainerGroup, error)

func (*DockerController) PauseContainer

func (controller *DockerController) PauseContainer(containerId string)

func (*DockerController) RestartContainer

func (controller *DockerController) RestartContainer(containerId string)

func (*DockerController) StartContainer

func (controller *DockerController) StartContainer(containerId string)

func (*DockerController) StopContainer

func (controller *DockerController) StopContainer(containerId string)

func (*DockerController) UnpauseContainer

func (controller *DockerController) UnpauseContainer(containerId string)

Jump to

Keyboard shortcuts

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