Documentation ¶
Index ¶
- type ContainerManager
- func (cm *ContainerManager) DeleteContainer()
- func (cm *ContainerManager) IsContainerAlive(name string) (*types.Container, error)
- func (cm *ContainerManager) RemoveAllContainers() error
- func (cm *ContainerManager) RunContainer(containerName string, imageName string) (*types.Container, error)
- func (cm *ContainerManager) StopAllContainers() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerManager ¶
type ContainerManager struct { }
ContainerManager is a wrapper over Docker SDK to easily manage docker container status inside analysis pipeline
func (*ContainerManager) DeleteContainer ¶
func (cm *ContainerManager) DeleteContainer()
func (*ContainerManager) IsContainerAlive ¶
func (cm *ContainerManager) IsContainerAlive(name string) (*types.Container, error)
func (*ContainerManager) RemoveAllContainers ¶
func (cm *ContainerManager) RemoveAllContainers() error
RemoveAllContainers removes all existing containers in the server
func (*ContainerManager) RunContainer ¶
func (*ContainerManager) StopAllContainers ¶
func (cm *ContainerManager) StopAllContainers() error
StopAllContainers stops all existing containers in the server
Click to show internal directories.
Click to hide internal directories.