docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Image       string
	Cmd         []string
	VolumeBinds []VolumeBind
}

type DockerEngine

type DockerEngine struct {
	Client *client.Client
}

func NewDockerEngine

func NewDockerEngine() (*DockerEngine, error)

func (*DockerEngine) CaptureStdOut

func (engine *DockerEngine) CaptureStdOut(ctx context.Context, containerID string) ([]byte, error)

func (*DockerEngine) EnsureImageExists

func (engine *DockerEngine) EnsureImageExists(ctx context.Context, imageName string) error

func (*DockerEngine) RunContainer

func (engine *DockerEngine) RunContainer(ctx context.Context, info ContainerInfo) (string, error)

type VolumeBind

type VolumeBind struct {
	Host  string
	Guest string
}

Jump to

Keyboard shortcuts

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