package restartmanager

import "github.com/docker/docker/restartmanager"

Index

Variables

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

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

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

func New(policy container.RestartPolicy, restartCount int) RestartManager

New returns a new restartmanager based on a policy.

Source Files

restartmanager.go

Version
v1.12.3
Published
Oct 26, 2016
Platform
linux/amd64
Imports
5 packages
Last checked
33 minutes ago

Tools for package owners.