Versions in this module Expand all Collapse all v0 v0.0.1 Jun 29, 2023 Changes in this version + func ContainerIOStream(ctx context.Context, appCli cli.Streams, cio *ContainerInOut, ...) error + func MonitorTtySize(ctx context.Context, d ContainerRunner, cli cli.Streams, id string, ...) error + type ContainerAttachOptions struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Tty bool + type ContainerCreateOptions struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + AutoRemove bool + Cmd []string + ContainerName string + Env []string + ExtraHosts []string + Image string + Mounts map[string]string + OpenStdin bool + StdinOnce bool + Tty bool + WorkingDir string + type ContainerInOut struct + In io.WriteCloser + Out io.Reader + func (h *ContainerInOut) Close() error + func (h *ContainerInOut) CloseWrite() error + type ContainerListOptions struct + SearchName string + type ContainerListResult struct + ID string + Names []string + Status string + type ContainerRemoveOptions struct + type ContainerRunner interface + Close func() error + ContainerAttach func(ctx context.Context, cid string, opts ContainerAttachOptions) (*ContainerInOut, error) + ContainerCreate func(ctx context.Context, opts ContainerCreateOptions) (string, error) + ContainerExecResize func(ctx context.Context, cid string, opts ResizeOptions) error + ContainerKill func(ctx context.Context, cid, signal string) error + ContainerList func(ctx context.Context, opts ContainerListOptions) []ContainerListResult + ContainerRemove func(ctx context.Context, cid string, opts ContainerRemoveOptions) error + ContainerResize func(ctx context.Context, cid string, opts ResizeOptions) error + ContainerStart func(ctx context.Context, cid string, opts ContainerStartOptions) error + ContainerStop func(ctx context.Context, cid string) error + ContainerWait func(ctx context.Context, cid string, opts ContainerWaitOptions) (<-chan ContainerWaitResponse, <-chan error) + ImageEnsure func(ctx context.Context, opts ImageOptions) (*ImageStatusResponse, error) + func New(t Type) (ContainerRunner, error) + func NewDockerDriver() (ContainerRunner, error) + type ContainerStartOptions struct + type ContainerStopOptions struct + Timeout *time.Duration + type ContainerWaitOptions struct + Condition WaitCondition + type ContainerWaitResponse struct + Error error + StatusCode int + type ImageOptions struct + Build *cli.BuildDefinition + Name string + type ImageStatus int64 + const ImageBuild + const ImageExists + const ImagePull + const ImageUnexpectedError + type ImageStatusResponse struct + Progress io.ReadCloser + Status ImageStatus + type ResizeOptions struct + Height uint + Width uint + type Streamer interface + Close func() error + Stream func(ctx context.Context) error + type Type string + const Docker + type WaitCondition string + const WaitConditionNextExit + const WaitConditionNotRunning + const WaitConditionRemoved