docker

package
v0.0.0-...-5cb6459 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) 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) GetOutputStream

func (d *DockerExecutor) GetOutputStream(containerID string, combinedOutput bool) (io.ReadCloser, error)

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

func (*DockerExecutor) WaitInit

func (d *DockerExecutor) WaitInit() error

Jump to

Keyboard shortcuts

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