Beispiel #1
0
func registerVolCreateStepFuncs() {
	var sfs = []struct {
		name string
		sf   transaction.StepFunc
	}{
		{"vol-create.Stage", validateVolumeCreate},
		{"vol-create.Commit", generateVolfiles},
		{"vol-create.Store", storeVolume},
		{"vol-create.Rollback", rollBackVolumeCreate},
	}
	for _, sf := range sfs {
		transaction.RegisterStepFunc(sf.sf, sf.name)
	}
}
Beispiel #2
0
func registerVolStopStepFuncs() {
	transaction.RegisterStepFunc(stopBricks, "vol-stop.Commit")
}
Beispiel #3
0
func registerVolStatusStepFuncs() {
	transaction.RegisterStepFunc(checkStatus, "vol-status.Check")
}
Beispiel #4
0
func registerVolStartStepFuncs() {
	transaction.RegisterStepFunc(startBricks, "vol-start.Commit")
	transaction.RegisterStepFunc(undoStartBricks, "vol-start.Undo")
}