container

package
v0.0.0-...-551a65d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 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 added in v0.9.0

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

Launchable is a retryable wrapper for a restartable

type Launcher added in v0.9.0

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 added in v0.9.0

func (l *Launcher) Start()

Start starts the launcher

func (*Launcher) Stop added in v0.9.0

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