docker

package
v0.0.0-...-b0b6c39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Cli *client.Client
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient(chaosType, filter string) (*Docker, error)

func (*Docker) Chaos

func (d *Docker) Chaos() chaos.Chaos

func (*Docker) GetContainers

func (d *Docker) GetContainers(ctx context.Context, all bool) ([]container.Container, error)

func (*Docker) RmContainer

func (d *Docker) RmContainer(ctx context.Context, name string) error

func (*Docker) StartContainer

func (d *Docker) StartContainer(ctx context.Context, name string) error

func (*Docker) StopContainer

func (d *Docker) StopContainer(ctx context.Context, name string) error

func (*Docker) Type

func (d *Docker) Type() string

Jump to

Keyboard shortcuts

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