Documentation ¶
Index ¶
- Constants
- Variables
- func ExecuteUpdateScriptRunner(updateScriptPath string)
- func InitCheckUpdateTimer() error
- func IsCPUIntensiveActionRunning() bool
- func IsCriticalActionRunning() bool
- func RollbackWithLocalDir(newVersion string, updateReason string) error
- func SafeBootstrapUpdate(preparationTimeout time.Duration, maximumDownloadTimeout time.Duration) error
- func SafeUpdate(preparationTimeout time.Duration, maximumDownloadTimeout time.Duration, ...) error
- func TriggerUpdateCheck()
- func UpgradeWithLocalDir(newVersion string, updateReason string) error
Constants ¶
View Source
const ( NotUpdating = "NotUpdating" UpdateReasonBoot = "Boot" UpdateReasonPeriod = "Periodic" UpdateReasonKickRollback = "KickRollback" UpdateReasonKickupgrade = "KickUpgrade" )
View Source
const (
// DefaultCheckIntervalSeconds is the default interval for update check timer
DefaultCheckIntervalSeconds = 1800
)
View Source
const (
// MaximumCheckUpdateRetries is the maximum retry count for checking update
MaximumCheckUpdateRetries = 3
)
Variables ¶
Functions ¶
func ExecuteUpdateScriptRunner ¶
func ExecuteUpdateScriptRunner(updateScriptPath string)
func InitCheckUpdateTimer ¶
func InitCheckUpdateTimer() error
func IsCPUIntensiveActionRunning ¶
func IsCPUIntensiveActionRunning() bool
IsCPUIntensiveActionRunning returns cpuIntensiveActionRunning flag as boolean variable
func IsCriticalActionRunning ¶
func IsCriticalActionRunning() bool
IsCriticalActionRunning returns criticalActionRunning flag as boolean variable
func RollbackWithLocalDir ¶
func SafeBootstrapUpdate ¶
func SafeUpdate ¶
func SafeUpdate(preparationTimeout time.Duration, maximumDownloadTimeout time.Duration, updateReason string) error
SafeUpdate checks update information and running tasks before invoking updator
func TriggerUpdateCheck ¶
func TriggerUpdateCheck()
TriggerUpgrade triggers doCheck() by call timer.SkipWaiting()
func UpgradeWithLocalDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.