docker

package
v0.0.0-...-afc0d39 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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 DockerConfig

type DockerConfig struct {
	ComposeVersion string
	NetworkDriver  string
	IPAMDriver     string
	Subnet         string
	Labels         map[string]string

	// Baron Chain specific configs
	NodeImage         string
	EnableMetrics     bool
	EnablePersistence bool
	PersistPath       string
	ValidatorSetSize  int
}

type Provider

type Provider struct {
	*infra.BaseProvider
	Testnet *e2e.Testnet
	Config  *DockerConfig
}

func NewProvider

func NewProvider(testnet *e2e.Testnet, cfg *DockerConfig) *Provider

func (*Provider) GetMetrics

func (p *Provider) GetMetrics(ctx context.Context) (*infra.ResourceMetrics, error)

func (*Provider) IsHealthy

func (p *Provider) IsHealthy(ctx context.Context) bool

func (*Provider) Setup

func (p *Provider) Setup(ctx context.Context) error

func (*Provider) Status

func (p *Provider) Status(ctx context.Context) (infra.Status, error)

func (*Provider) Teardown

func (p *Provider) Teardown(ctx context.Context) error

Jump to

Keyboard shortcuts

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