Documentation ¶
Index ¶
- type DockerExecutor
- func (d *DockerExecutor) CopyFile(containerID string, sourcePath string, destPath string) error
- func (d *DockerExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
- func (d *DockerExecutor) GetOutput(containerID string) (string, error)
- func (d *DockerExecutor) Kill(containerIDs []string) error
- func (d *DockerExecutor) Wait(containerID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerExecutor ¶
type DockerExecutor struct{}
func (*DockerExecutor) CopyFile ¶
func (d *DockerExecutor) CopyFile(containerID string, sourcePath string, destPath string) error
func (*DockerExecutor) GetFileContents ¶
func (d *DockerExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
func (*DockerExecutor) GetOutput ¶
func (d *DockerExecutor) GetOutput(containerID string) (string, error)
GetOutput returns the entirety of the container output as a string Used to capturing script results as an output parameter
func (*DockerExecutor) Kill ¶
func (d *DockerExecutor) Kill(containerIDs []string) error
killContainers kills a list of containerIDs first with a SIGTERM then with a SIGKILL after a grace period
func (*DockerExecutor) Wait ¶
func (d *DockerExecutor) Wait(containerID string) error
Wait for the container to complete
Click to show internal directories.
Click to hide internal directories.