docker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const DockerComposeFile = "compose.yaml"

Variables

This section is empty.

Functions

func Exec added in v0.38.0

func Exec(ctx context.Context, args ...string) error

Exec runs a Docker command.

func ExecCompose added in v0.38.0

func ExecCompose(ctx context.Context, dir string, args ...string) error

ExecCompose runs a Docker Compose command for a testnet.

func ExecComposeOutput added in v0.38.0

func ExecComposeOutput(ctx context.Context, dir string, args ...string) ([]byte, error)

ExecCompose runs a Docker Compose command for a testnet and returns the command's output.

func ExecComposeVerbose added in v0.38.0

func ExecComposeVerbose(ctx context.Context, dir string, args ...string) error

ExecComposeVerbose runs a Docker Compose command for a testnet and displays its output.

func ExecVerbose added in v1.0.0

func ExecVerbose(ctx context.Context, args ...string) error

Exec runs a Docker command while displaying its output.

Types

type Provider

type Provider struct {
	infra.ProviderData
}

Provider implements a docker-compose backed infrastructure provider.

func (Provider) CheckUpgraded added in v1.0.0

func (Provider) CheckUpgraded(ctx context.Context, node *e2e.Node) (string, bool, error)

func (Provider) Disconnect added in v1.0.0

func (p Provider) Disconnect(ctx context.Context, name string, _ string) error

func (Provider) NodeIP added in v1.0.0

func (Provider) NodeIP(node *e2e.Node) net.IP

func (Provider) Reconnect added in v1.0.0

func (p Provider) Reconnect(ctx context.Context, name string, _ string) error

func (*Provider) Setup

func (p *Provider) Setup() error

Setup generates the docker-compose file and write it to disk, erroring if any of these operations fail.

func (Provider) StartNodes added in v0.38.0

func (p Provider) StartNodes(ctx context.Context, nodes ...*e2e.Node) error

func (Provider) StopTestnet added in v0.38.0

func (p Provider) StopTestnet(ctx context.Context) error

Jump to

Keyboard shortcuts

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