docker

package
v3.2.3-jfd Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerExecutor

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

func NewDockerExecutor

func NewDockerExecutor(namespace, podName string) (*DockerExecutor, error)

func (*DockerExecutor) CopyFile

func (d *DockerExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) error

func (*DockerExecutor) GetExitCode

func (d *DockerExecutor) GetExitCode(ctx context.Context, containerName string) (string, error)

func (*DockerExecutor) GetFileContents

func (d *DockerExecutor) GetFileContents(containerName string, sourcePath string) (string, error)

func (*DockerExecutor) GetOutputStream

func (d *DockerExecutor) GetOutputStream(ctx context.Context, containerName string, combinedOutput bool) (io.ReadCloser, error)

func (*DockerExecutor) Kill

func (d *DockerExecutor) Kill(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration) error

killContainers kills a list of containerNames first with a SIGTERM then with a SIGKILL after a grace period

func (*DockerExecutor) ListContainerNames

func (d *DockerExecutor) ListContainerNames(ctx context.Context) ([]string, error)

func (*DockerExecutor) Wait

func (d *DockerExecutor) Wait(ctx context.Context, containerNames []string) error

Jump to

Keyboard shortcuts

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