v1alpha1

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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

type Action

type Action string
const (
	ActionSuccess Action = "Success"
	ActionFailure Action = "Failure"
)

type State

type State string
const (
	NodeAvailable      State = "Available"
	NodeUpgrading      State = "Upgrading"
	NodeRollingBack    State = "RollingBack"
	NodeConfigUpdating State = "ConfigUpdating"
)
const (
	TaskInit       State = "Init"
	TaskChecking   State = "Checking"
	TaskSuccessful State = "Successful"
	TaskFailed     State = "Failed"
	TaskPause      State = "Pause"
)
const (
	BackingUpState State = "BackingUp"
)
const (
	PullingState State = "Pulling"
)
const (
	RollingBackState State = "RollingBack"
)
const (
	UpgradingState State = "Upgrading"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL