Documentation
¶
Index ¶
Constants ¶
View Source
const DOCKER_INTERACTOR = "docker"
View Source
const SWARM_INTERACTOR = "swarm"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInfo ¶
type ContainerInteractor ¶
type ContainerInteractor interface { ListContainers() ([]string, error) InspectContainer(id string) (ContainerInfo, error) CreateContainer() (string, error) }
func CreateDockerContainerInteractor ¶
func CreateDockerContainerInteractor(image ImageInfo, options DockerContainerInteractorOptions) (ContainerInteractor, error)
func CreateSwarmContainerInteractor ¶
func CreateSwarmContainerInteractor(image ImageInfo, options SwarmContainerInteractorOptions) (ContainerInteractor, error)
type DockerContainerInteractorOptions ¶
type DockerContainerInteractorOptions struct {
DockerNetwork string
}
type DockerInteractor ¶
type DockerInteractor struct {
// contains filtered or unexported fields
}
func (*DockerInteractor) CreateContainer ¶
func (interactor *DockerInteractor) CreateContainer() (string, error)
func (*DockerInteractor) InspectContainer ¶
func (interactor *DockerInteractor) InspectContainer(id string) (ContainerInfo, error)
func (*DockerInteractor) ListContainers ¶
func (interactor *DockerInteractor) ListContainers() ([]string, error)
type MockInteractor ¶
func (*MockInteractor) CreateContainer ¶
func (mocked *MockInteractor) CreateContainer() (string, error)
func (*MockInteractor) InspectContainer ¶
func (mocked *MockInteractor) InspectContainer(id string) (ContainerInfo, error)
func (*MockInteractor) ListContainers ¶
func (mocked *MockInteractor) ListContainers() ([]string, error)
type SwarmInteractor ¶
type SwarmInteractor struct { ConvergeVerifyCooldown int ConvergeVerifyRetries int // contains filtered or unexported fields }
func (*SwarmInteractor) CreateContainer ¶
func (interactor *SwarmInteractor) CreateContainer() (string, error)
func (*SwarmInteractor) InspectContainer ¶
func (interactor *SwarmInteractor) InspectContainer(id string) (ContainerInfo, error)
func (*SwarmInteractor) ListContainers ¶
func (interactor *SwarmInteractor) ListContainers() ([]string, error)
Click to show internal directories.
Click to hide internal directories.