Documentation
¶
Index ¶
- type Container
- type ContainerGroup
- func (group *ContainerGroup) AllContainersArePaused() bool
- func (group *ContainerGroup) AllContainersAreRunning() bool
- func (group *ContainerGroup) AllContainersAreStopped() bool
- func (group *ContainerGroup) AnyContainerIsPaused() bool
- func (group *ContainerGroup) AnyContainerIsRunning() bool
- func (group *ContainerGroup) AnyContainerIsStopped() bool
- func (group *ContainerGroup) GetContainers() []*Container
- func (group *ContainerGroup) Pause()
- func (group *ContainerGroup) Restart()
- func (group *ContainerGroup) Start()
- func (group *ContainerGroup) Stop()
- func (group *ContainerGroup) Unpause()
- type DockerController
- func (controller *DockerController) ContainerIsPaused(containerId string) bool
- func (controller *DockerController) ContainerIsRunning(containerId string) bool
- func (controller *DockerController) NewContainer(containerName string) (*Container, error)
- func (controller *DockerController) NewContainerGroup(groupName string) (*ContainerGroup, error)
- func (controller *DockerController) PauseContainer(containerId string)
- func (controller *DockerController) RestartContainer(containerId string)
- func (controller *DockerController) StartContainer(containerId string)
- func (controller *DockerController) StopContainer(containerId string)
- func (controller *DockerController) UnpauseContainer(containerId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) GetContainers ¶
func (group *ContainerGroup) GetContainers() []*Container
func (*ContainerGroup) Pause ¶
func (group *ContainerGroup) Pause()
func (*ContainerGroup) Restart ¶
func (group *ContainerGroup) Restart()
func (*ContainerGroup) Start ¶
func (group *ContainerGroup) Start()
func (*ContainerGroup) Stop ¶
func (group *ContainerGroup) Stop()
func (*ContainerGroup) Unpause ¶
func (group *ContainerGroup) Unpause()
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)
Click to show internal directories.
Click to hide internal directories.