dockerenginetest

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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
	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

Build calls the stubbed function.

func (*Double) ContainerExitCode added in v1.33.0

func (d *Double) ContainerExitCode(ctx context.Context, containerName string) (int, error)

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

func (d *Double) IsContainerHealthy(ctx context.Context, containerName string) (bool, error)

IsContainerHealthy implements orchestrator.DockerEngine.

func (*Double) IsContainerRunning

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

IsContainerRunning calls the stubbed function.

func (*Double) Rm added in v1.33.0

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

Rm 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