docker

package
v0.0.0-...-f44cb42 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 (cm *ContainerManager) RunContainer(containerName string, imageName string) (*types.Container, error)

func (*ContainerManager) StopAllContainers

func (cm *ContainerManager) StopAllContainers() error

StopAllContainers stops all existing containers in the server

Jump to

Keyboard shortcuts

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