Documentation
¶
Index ¶
- type Double
- func (d *Double) Build(ctx context.Context, in *dockerengine.BuildArguments, w io.Writer) error
- func (d *Double) DoesContainerExist(ctx context.Context, name string) (bool, error)
- func (d *Double) Exec(ctx context.Context, container string, out io.Writer, cmd string, ...) error
- func (d *Double) IsContainerRunning(ctx context.Context, name string) (bool, 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
DoesContainerExistFn func(context.Context, string) (bool, 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
}
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) DoesContainerExist ¶ added in v1.32.1
DoesContainerExist calls the stubbed function.
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) 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.