Documentation ¶
Index ¶
- type Double
- func (d *Double) Build(ctx context.Context, in *dockerengine.BuildArguments, w io.Writer) error
- func (d *Double) ContainerExitCode(ctx context.Context, containerName string) (int, error)
- func (d *Double) Exec(ctx context.Context, container string, out io.Writer, cmd string, ...) error
- func (d *Double) IsContainerHealthy(ctx context.Context, containerName string) (bool, error)
- func (d *Double) IsContainerRunning(ctx context.Context, name string) (bool, error)
- func (d *Double) Rm(ctx context.Context, name string) error
- func (d *Double) Run(ctx context.Context, opts *dockerengine.RunOptions) error
- func (d *Double) Stop(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Double ¶
type Double struct { StopFn func(context.Context, string) error IsContainerRunningFn func(context.Context, string) (bool, error) RunFn func(context.Context, *dockerengine.RunOptions) error BuildFn func(context.Context, *dockerengine.BuildArguments, io.Writer) error ExecFn func(context.Context, string, io.Writer, string, ...string) error IsContainerHealthyFn func(ctx context.Context, containerName string) (bool, error) ContainerExitCodeFn func(ctx context.Context, containerName string) (int, error) RmFn func(context.Context, string) error }
Double is a test double for dockerengine.DockerCmdClient
func (*Double) Build ¶
func (d *Double) Build(ctx context.Context, in *dockerengine.BuildArguments, w io.Writer) error
Build calls the stubbed function.
func (*Double) ContainerExitCode ¶ added in v1.33.0
ContainerExitCode implements orchestrator.DockerEngine.
func (*Double) Exec ¶
func (d *Double) Exec(ctx context.Context, container string, out io.Writer, cmd string, args ...string) error
Exec calls the stubbed function.
func (*Double) IsContainerHealthy ¶ added in v1.33.0
IsContainerHealthy implements orchestrator.DockerEngine.
func (*Double) IsContainerRunning ¶
IsContainerRunning calls the stubbed function.
func (*Double) Run ¶
func (d *Double) Run(ctx context.Context, opts *dockerengine.RunOptions) error
Run calls the stubbed function.
Click to show internal directories.
Click to hide internal directories.