mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00

- removes unwieldy SkipUpdate return value in favor of errors.Is - generalizes the code for all four phases - allows timeout to be defined for all phases - enables explicit unit in timeout label values (in addition to implicit minutes)
11 lines
567 B
Go
11 lines
567 B
Go
package container
|
|
|
|
import "errors"
|
|
|
|
var errorNoImageInfo = errors.New("no available image info")
|
|
var errorNoContainerInfo = errors.New("no available container info")
|
|
var errorInvalidConfig = errors.New("container configuration missing or invalid")
|
|
var errorLabelNotFound = errors.New("label was not found in container")
|
|
|
|
// ErrorLifecycleSkip is returned by a lifecycle hook when the exit code of the command indicated that it ought to be skipped
|
|
var ErrorLifecycleSkip = errors.New("skipping container as the pre-update command returned exit code 75 (EX_TEMPFAIL)")
|