docker

package
v0.0.0-...-f8747f6 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerPullTimeout = 2 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerState

type ContainerState struct {
	Exists   bool
	Running  bool
	ExitCode *int
}

type DockerExecutor

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

func NewDockerExecutor

func NewDockerExecutor() (*DockerExecutor, error)

func (*DockerExecutor) Cleanup

func (d *DockerExecutor) Cleanup(ctx context.Context, req *types.ExecutionRequest) error

func (*DockerExecutor) Close

func (d *DockerExecutor) Close() error

func (*DockerExecutor) Execute

func (d *DockerExecutor) Execute(ctx context.Context, req *types.ExecutionRequest, workdir string) (string, error)

func (*DockerExecutor) PullImage

func (d *DockerExecutor) PullImage(ctx context.Context, imageName, version string) error

func (*DockerExecutor) StopContainer

func (d *DockerExecutor) StopContainer(ctx context.Context, workflowID string) error

StopContainer stops a container by name, falling back to kill if needed (for cleanup activity)

Jump to

Keyboard shortcuts

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