Versions in this module Expand all Collapse all v0 v0.0.1 Jul 4, 2026 Changes in this version + func BuildDockerfile(ctx context.Context, dockerfilePath string) (string, string, error) + func CleanupAndKillContainer(ctx context.Context, client *docker.Client, name string) error + func CreateNetwork(ctx context.Context, name string, labels map[string]string) (bool, error) + func DeleteImage(ctx context.Context, client *docker.Client, image string, tag string) error + func DockerAvailable() bool + func ImageExists(ctx context.Context, client *docker.Client, image string, tag string) (bool, error) + func LogsFromContainers(ctx context.Context, containers ...*Container) (logs.LogStreams, error) + func MergeContainerLogs(ctx context.Context, containers ...*Container) (io.ReadCloser, error) + func NewClient(ctx context.Context) (*docker.Client, error) + func RemoveNetwork(ctx context.Context, name string) error + type Container struct + func NewContainer(name string, image string, options ...ContainerOption) (*Container, error) + func (c *Container) Address(port string) string + func (c *Container) Cleanup(ctx context.Context) error + func (c *Container) Client() *docker.Client + func (c *Container) DeleteImage(ctx context.Context) error + func (c *Container) GetContainerID() string + func (c *Container) GetPorts() map[string]string + func (c *Container) HostPort(port string) (string, bool) + func (c *Container) ImageExists(ctx context.Context) (bool, error) + func (c *Container) IsRunning(ctx context.Context) (bool, error) + func (c *Container) Kill(ctx context.Context) error + func (c *Container) Labels() map[string]string + func (c *Container) Logs(ctx context.Context) (io.ReadCloser, error) + func (c *Container) Name() string + func (c *Container) SetLabels(labels map[string]string) + func (c *Container) SetNamePrefix(prefix string) + func (c *Container) SetNetwork(name string) + func (c *Container) Start(ctx context.Context) (err error) + func (c *Container) Stop(ctx context.Context, wait int) error + func (c *Container) URL(scheme string, port string) string + func (c *Container) WaitForLogText(ctx context.Context, text string, timeout time.Duration) error + type ContainerOption func(*Container) + func WithBind(hostPath string, containerPath string) ContainerOption + func WithCommand(command ...string) ContainerOption + func WithEnv(env map[string]string) ContainerOption + func WithHostIP(hostIP string) ContainerOption + func WithLabels(labels map[string]string) ContainerOption + func WithNetwork(name string) ContainerOption + func WithPort(containerPort string, hostPort string) ContainerOption + func WithPorts(ports map[string]string) ContainerOption + func WithTag(tag string) ContainerOption + type Harness interface + Cleanup func() error + IsRunning func() (bool, error) + Start func() error + Stop func(wait int) error