boot

package
v0.0.0-...-a53e426 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCoreLogs

func CopyCoreLogs()

func GetPhysicalAddress

func GetPhysicalAddress(virtual string) string

func Load

func Load(cfg *config.Case) error

Load configuration to the Booter.

func ShutDown

func ShutDown() error

ShutDown close the virtual environment.

func Start

func Start() error

Start initialize the virtual environment and execute setup commands on the host machine.

Types

type Booter

type Booter interface {
	Start() error
	Stop() error
	CopyCoreLogs()
}

Booter start or stop the virtual environment.

type ComposeBooter

type ComposeBooter struct {
	// contains filtered or unexported fields
}

ComposeBooter control docker-compose to start or stop containers.

func NewComposeBooter

func NewComposeBooter(c *config.Case) *ComposeBooter

NewComposeBooter create a new compose booter.

func (*ComposeBooter) CopyCoreLogs

func (c *ComposeBooter) CopyCoreLogs()

func (*ComposeBooter) Start

func (c *ComposeBooter) Start() error

func (*ComposeBooter) Stop

func (c *ComposeBooter) Stop() error

type StrategyWrapper

type StrategyWrapper struct {
	// contains filtered or unexported fields
}

StrategyWrapper caches the real wait.StrategyTarget to get the metadata of the running containers.

func (*StrategyWrapper) WaitUntilReady

func (s *StrategyWrapper) WaitUntilReady(ctx context.Context, target wait.StrategyTarget) error

Jump to

Keyboard shortcuts

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