package restartmanager
import "github.com/dotcloud/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
- v20.10.11+incompatible
- Published
- Nov 18, 2021
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 7 minutes ago –
Tools for package owners.