package restartmanager
import "github.com/docker/cli/components/engine/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
- v17.10.0-ce-rc2+incompatible
- Published
- Oct 12, 2017
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 4 hours ago –
Tools for package owners.