Documentation ¶
Index ¶
- type DockerExecutor
- func (d *DockerExecutor) CopyFile(containerID string, sourcePath string, destPath string, compressionLevel int) error
- func (d *DockerExecutor) GetExitCode(ctx context.Context, containerID string) (string, error)
- func (d *DockerExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
- func (d *DockerExecutor) GetOutputStream(ctx context.Context, containerID string, combinedOutput bool) (io.ReadCloser, error)
- func (d *DockerExecutor) Kill(ctx context.Context, containerIDs []string, ...) error
- func (d *DockerExecutor) Wait(ctx context.Context, containerID string) error
- func (d *DockerExecutor) WaitInit() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerExecutor ¶
type DockerExecutor struct{}
func NewDockerExecutor ¶
func NewDockerExecutor() (*DockerExecutor, error)
func (*DockerExecutor) GetExitCode ¶
func (*DockerExecutor) GetFileContents ¶
func (d *DockerExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
func (*DockerExecutor) GetOutputStream ¶
func (d *DockerExecutor) GetOutputStream(ctx context.Context, containerID string, combinedOutput bool) (io.ReadCloser, error)
func (*DockerExecutor) Kill ¶
func (d *DockerExecutor) Kill(ctx context.Context, containerIDs []string, terminationGracePeriodDuration time.Duration) 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(ctx context.Context, containerID string) error
Wait for the container to complete
func (*DockerExecutor) WaitInit ¶
func (d *DockerExecutor) WaitInit() error
Click to show internal directories.
Click to hide internal directories.