docker

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

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.

Types

type Provider

type Provider struct {
	infra.ProviderData
}

Provider implements a docker-compose backed infrastructure provider.

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