docker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient struct {
	// contains filtered or unexported fields
}

DockerClient represents a connection to the docker daemon

func New

func New() (*DockerClient, error)

New connects a new client to the docker daemon

func (DockerClient) CreateAndRunAgentContainer

func (d DockerClient) CreateAndRunAgentContainer(namespace, image, containerName, agentSerialization string) error

CreateAndRunAgentContainer creates and runs a container for an agent

func (DockerClient) CreateAndRunCoordinatorContainer

func (d DockerClient) CreateAndRunCoordinatorContainer(namespace, image string) error

CreateAndRunCoordinatorContainer creates and runs a container for the coordinator

func (DockerClient) CreateAndRunGUIContainer

func (d DockerClient) CreateAndRunGUIContainer(namespace, image string, port int) error

CreateAndRunGUIContainer creates and runs a container for the GUI

func (DockerClient) CreateNetworks

func (d DockerClient) CreateNetworks(namespace string) error

CreateNetworks creates the data and control network for the simulation

func (DockerClient) GetContainerLogsLines

func (d DockerClient) GetContainerLogsLines(containerName, name string, lines chan string, follow bool) error

GetContainerLogsLines returns a channel of log lines from a container

func (DockerClient) RemoveContainer

func (d DockerClient) RemoveContainer(containerName string) error

RemoveContainer removes a container

func (DockerClient) RemoveNetworks

func (d DockerClient) RemoveNetworks(namespace string) error

RemoveNetworks removes the data and control network for the simulation

Jump to

Keyboard shortcuts

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