package restartmanager
import "github.com/docker/docker/restartmanager"
Index ¶
Variables ¶
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 ¶
- Version
- v1.13.0-rc4
- Published
- Dec 16, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 58 seconds ago –
Tools for package owners.