Documentation ¶
Index ¶
- type DockerClient
- func (d DockerClient) CreateAndRunAgentContainer(namespace, image, containerName, agentSerialization string) error
- func (d DockerClient) CreateAndRunCoordinatorContainer(namespace, image string) error
- func (d DockerClient) CreateAndRunGUIContainer(namespace, image string, port int) error
- func (d DockerClient) CreateNetworks(namespace string) error
- func (d DockerClient) GetContainerLogsLines(containerName, name string, lines chan string, follow bool) error
- func (d DockerClient) RemoveContainer(containerName string) error
- func (d DockerClient) RemoveNetworks(namespace string) error
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 (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
Click to show internal directories.
Click to hide internal directories.