 Documentation
      ¶
      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 ¶
func New(policy container.RestartPolicy, restartCount int) RestartManager
New returns a new restartManager based on a policy.
 Click to show internal directories. 
   Click to hide internal directories.