dockercompose

package
v0.0.0-...-7e98ac4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCoreLogs

func CopyCoreLogs()

func CreateDockerClient

func CreateDockerClient(opt ...docker.Opt) (client *docker.Client, err error)

func GetPhysicalAddress

func GetPhysicalAddress(virtual string) string

func Load

func Load() error

Load configuration to the Booter.

func ShutDown

func ShutDown() error

ShutDown close the virtual environment.

func Start

func Start(ctx context.Context) error

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

Types

type Booter

type Booter interface {
	Start(ctx context.Context) 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() *ComposeBooter

NewComposeBooter create a new compose booter.

func (*ComposeBooter) CopyCoreLogs

func (c *ComposeBooter) CopyCoreLogs()

func (*ComposeBooter) Start

func (c *ComposeBooter) Start(ctx context.Context) 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