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) ContainerExists(containerId string) bool
- func (group *ContainerGroup) ContainerIsPaused(containerId string) (bool, error)
- func (group *ContainerGroup) ContainerIsRunning(containerId string) (bool, error)
- func (group *ContainerGroup) GetContainers() []*Container
- func (group *ContainerGroup) Pause()
- func (group *ContainerGroup) PauseContainer(containerId string)
- func (group *ContainerGroup) Restart()
- func (group *ContainerGroup) RestartContainer(containerId string)
- func (group *ContainerGroup) Start()
- func (group *ContainerGroup) StartContainer(containerId string)
- func (group *ContainerGroup) Stop()
- func (group *ContainerGroup) StopContainer(containerId string)
- func (group *ContainerGroup) Unpause()
- func (group *ContainerGroup) UnpauseContainer(containerId string)
- 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) 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)
Click to show internal directories.
Click to hide internal directories.