docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander added in v0.2.0

type Commander interface {
	Run(cmd command.ExecCmd) (output string, err error)
}

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func New

func New(commander Commander) (
	d *Docker, err error)

func (*Docker) AreContainerRunning

func (d *Docker) AreContainerRunning(ctx context.Context, requiredContainerNames []string) (
	containersNotRunning []string, err error)

func (*Docker) BadContainers

func (d *Docker) BadContainers(ctx context.Context) (containerNameToState map[string]string, err error)

func (*Docker) ComposeVersion

func (d *Docker) ComposeVersion(ctx context.Context) (version string)

func (*Docker) CountContainers

func (d *Docker) CountContainers(ctx context.Context) (count int, err error)

func (*Docker) IsRunning

func (d *Docker) IsRunning(ctx context.Context) (running bool)

func (*Docker) Version

func (d *Docker) Version(ctx context.Context) string

Jump to

Keyboard shortcuts

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