docker

package
v3.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerOrchestrator

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

func NewDockerOrchestrator

func NewDockerOrchestrator() (*DockerOrchestrator, error)

func (*DockerOrchestrator) CreateNetwork

func (d *DockerOrchestrator) CreateNetwork(ctx context.Context, name string) (string, error)

func (*DockerOrchestrator) EnsureImage

func (d *DockerOrchestrator) EnsureImage(ctx context.Context, imageName string) error

EnsureImage pulls imageName if it is not present in the local Docker image cache. Call this explicitly for infrastructure images before starting their containers. Do NOT call this for app/migration images — those must be built locally.

func (*DockerOrchestrator) GetContainerInspect

func (d *DockerOrchestrator) GetContainerInspect(ctx context.Context, id string) (types.ContainerJSON, error)

func (*DockerOrchestrator) PullImage

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

func (*DockerOrchestrator) RemoveNetwork

func (d *DockerOrchestrator) RemoveNetwork(ctx context.Context, id string) error

func (*DockerOrchestrator) StartContainer

func (d *DockerOrchestrator) StartContainer(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (string, error)

func (*DockerOrchestrator) StopAndRemoveContainer

func (d *DockerOrchestrator) StopAndRemoveContainer(ctx context.Context, id string) error

func (*DockerOrchestrator) StreamLogs

func (d *DockerOrchestrator) StreamLogs(ctx context.Context, id string, stdout io.Writer, stderr io.Writer) error

func (*DockerOrchestrator) WaitForContainer

func (d *DockerOrchestrator) WaitForContainer(ctx context.Context, id string) (<-chan container.WaitResponse, <-chan error)

func (*DockerOrchestrator) WaitHTTP

func (d *DockerOrchestrator) WaitHTTP(ctx context.Context, url string, timeout time.Duration) error

func (*DockerOrchestrator) WaitTCPInternal

func (d *DockerOrchestrator) WaitTCPInternal(ctx context.Context, networkName, address string, timeout time.Duration) error

WaitTCPInternal waits for a TCP service to be available. Uses direct TCP dial from host instead of spawning Alpine containers. The address parameter should be in "host:port" format (e.g., "localhost:3306").

Jump to

Keyboard shortcuts

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