container

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopLauncher

func NewNoopLauncher() restart.Restartable

NewNoopLauncher returns a new noopLauncher.

Types

type Launchable

type Launchable struct {
	IsAvailable func() (bool, *retry.Retrier)
	Launcher    func() restart.Restartable
}

Launchable is a retryable wrapper for a restartable

type Launcher

type Launcher struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Launcher tries to select a container launcher and retry on failure

func NewLauncher

func NewLauncher(containerLaunchers []Launchable) *Launcher

NewLauncher creates a new launcher

func (*Launcher) Start

func (l *Launcher) Start()

Start starts the launcher

func (*Launcher) Stop

func (l *Launcher) Stop()

Stop stops the launcher

Jump to

Keyboard shortcuts

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