Documentation ¶
Index ¶
Constants ¶
View Source
const (
EventTimeOut = "TimeOut"
)
Variables ¶
View Source
var BackupRule = map[string]State{ "/Init/Success": TaskChecking, "Checking/Check/Success": BackingUpState, "Checking/Check/Failure": TaskFailed, "BackingUp/Backup/Success": TaskSuccessful, "BackingUp/Backup/Failure": TaskFailed, }
View Source
var PrePullRule = map[string]State{ "Init/Init/Success": TaskChecking, "Init/Init/Failure": TaskFailed, "Init/TimeOut/Failure": TaskFailed, "Checking/Check/Success": PullingState, "Checking/Check/Failure": TaskFailed, "Checking/TimeOut/Failure": TaskFailed, "Pulling/Pull/Success": TaskSuccessful, "Pulling/Pull/Failure": TaskFailed, "Pulling/TimeOut/Failure": TaskFailed, }
CurrentState/Event/Action: NextState
View Source
var PrePullStageSequence = map[State]State{ "": TaskChecking, TaskInit: TaskChecking, TaskChecking: PullingState, }
View Source
var RollbackRule = map[string]State{ "/Init/Success": TaskChecking, "Checking/Check/Success": RollingBackState, "Checking/Check/Failure": TaskFailed, "RollingBack/Rollback/Failure": TaskFailed, "RollingBack/Rollback/Success": TaskFailed, }
View Source
var UpdateStageSequence = map[State]State{ "": TaskChecking, TaskInit: TaskChecking, TaskChecking: BackingUpState, BackingUpState: UpgradingState, UpgradingState: RollingBackState, }
View Source
var UpgradeRule = map[string]State{ "Init/Init/Success": TaskChecking, "Init/Init/Failure": TaskFailed, "Init/TimeOut/Failure": TaskFailed, "Init/Upgrade/Success": TaskSuccessful, "Checking/Check/Success": BackingUpState, "Checking/Check/Failure": TaskFailed, "Checking/TimeOut/Failure": TaskFailed, "BackingUp/Backup/Success": UpgradingState, "BackingUp/Backup/Failure": TaskFailed, "BackingUp/TimeOut/Failure": TaskFailed, "Upgrading/Upgrade/Success": TaskSuccessful, "Upgrading/Upgrade/Failure": TaskFailed, "Upgrading/TimeOut/Failure": TaskFailed, "RollingBack/Rollback/Failure": TaskFailed, "RollingBack/TimeOut/Failure": TaskFailed, "RollingBack/Rollback/Success": TaskFailed, "Upgrading/Rollback/Failure": TaskFailed, "Upgrading/Rollback/Success": TaskFailed, "Init/Rollback/Failure": TaskFailed, "Init/Rollback/Success": TaskFailed, }
CurrentState/Event/Action: NextState
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.