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) } }
func registerVolStopStepFuncs() { transaction.RegisterStepFunc(stopBricks, "vol-stop.Commit") }
func registerVolStatusStepFuncs() { transaction.RegisterStepFunc(checkStatus, "vol-status.Check") }
func registerVolStartStepFuncs() { transaction.RegisterStepFunc(startBricks, "vol-start.Commit") transaction.RegisterStepFunc(undoStartBricks, "vol-start.Undo") }