dockerenginetest

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Build calls the stubbed function.

func (*Double) DoesContainerExist added in v1.32.1

func (d *Double) DoesContainerExist(ctx context.Context, name string) (bool, error)

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

func (d *Double) IsContainerRunning(ctx context.Context, name string) (bool, error)

IsContainerRunning calls the stubbed function.

func (*Double) Run

func (d *Double) Run(ctx context.Context, opts *dockerengine.RunOptions) error

Run calls the stubbed function.

func (*Double) Stop

func (d *Double) Stop(ctx context.Context, name string) error

Stop calls the stubbed function.

Jump to

Keyboard shortcuts

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