vmcompose

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "vmcompose"

Variables

This section is empty.

Functions

func LoadData

func LoadData(ctx context.Context, path string) (types.InfrastructureData, error)

LoadData returns the vmcompose infrastructure data from the given path.

Types

type Provider

type Provider struct {
	Testnet types.Testnet
	Data    types.InfrastructureData
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(testnet types.Testnet, data types.InfrastructureData, imgTag string) *Provider

func (*Provider) Clean

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

func (*Provider) GetInfrastructureData

func (p *Provider) GetInfrastructureData() *e2e.InfrastructureData

func (*Provider) Restart

func (p *Provider) Restart(ctx context.Context, cfg types.ServiceConfig) error

func (*Provider) Setup

func (p *Provider) Setup() error

Setup generates the docker-compose file for each VM IP.

func (*Provider) StartNodes

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

func (*Provider) StopTestnet

func (*Provider) StopTestnet(context.Context) error

func (*Provider) Upgrade

func (p *Provider) Upgrade(ctx context.Context, cfg types.ServiceConfig) error

Upgrade copies some of the local e2e generated artifacts to the VMs and starts the docker-compose services.

Jump to

Keyboard shortcuts

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