restartmanager

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRestartCanceled = errors.New("restart canceled")

ErrRestartCanceled is returned when the restart manager has been canceled and will no longer restart the container.

Functions

This section is empty.

Types

type RestartManager

type RestartManager interface {
	Cancel() error
	ShouldRestart(exitCode uint32, hasBeenManuallyStopped bool, executionDuration time.Duration) (bool, chan error, error)
}

RestartManager defines object that controls container restarting rules.

func New

New returns a new restartmanager based on a policy.

Jump to

Keyboard shortcuts

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