docker

package
v100.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

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

Exec runs a Docker command.

func ExecCompose

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

ExecCompose runs a Docker Compose command for a testnet.

func ExecComposeOutput

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

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

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

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

func (Provider) Disconnect

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

func (Provider) Reconnect

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

func (Provider) SetLatency

func (p Provider) SetLatency(ctx context.Context, node *e2e.Node) 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

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

func (Provider) StopTestnet

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