func UpgradeSeriesGraph() Graph {
	return map[UpgradeSeriesStatus][]UpgradeSeriesStatus{
		// Some clients are older and don't know about the validation phase, so
		// in that case we allow them to jump to prepare-started.
		UpgradeSeriesNotStarted: {
			UpgradeSeriesPrepareStarted,
			UpgradeSeriesValidate,
			UpgradeSeriesError,
		},
		UpgradeSeriesValidate: {
			UpgradeSeriesPrepareStarted,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareStarted: {
			UpgradeSeriesPrepareRunning,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareRunning: {
			UpgradeSeriesPrepareCompleted,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareCompleted: {
			UpgradeSeriesCompleteStarted,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleteStarted: {
			UpgradeSeriesCompleteRunning,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleteRunning: {
			UpgradeSeriesCompleted,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleted: {
			UpgradeSeriesError,
		},
		UpgradeSeriesError: {},
	}
}
// UpgradeSeriesGraph defines a graph for moving between vertices of an upgrade
// series.
UpgradeSeriesGraph defines a graph for moving between vertices of an upgrade
series.
// UpgradeSeriesGraph defines a graph for moving between vertices of an upgrade // series .
func UpgradeSeriesGraph() Graph {
	return map[UpgradeSeriesStatus][]UpgradeSeriesStatus{
		UpgradeSeriesNotStarted: {
			UpgradeSeriesPrepareStarted,
			UpgradeSeriesValidate,
			UpgradeSeriesError,
		},
		UpgradeSeriesValidate: {
			UpgradeSeriesPrepareStarted,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareStarted: {
			UpgradeSeriesPrepareRunning,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareRunning: {
			UpgradeSeriesPrepareCompleted,
			UpgradeSeriesError,
		},
		UpgradeSeriesPrepareCompleted: {
			UpgradeSeriesCompleteStarted,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleteStarted: {
			UpgradeSeriesCompleteRunning,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleteRunning: {
			UpgradeSeriesCompleted,
			UpgradeSeriesError,
		},
		UpgradeSeriesCompleted: {
			UpgradeSeriesError,
		},
		UpgradeSeriesError: {},
	}
}
func UpgradeSeriesGraph ( ) Graph { return map [ UpgradeSeriesStatus ] [ ] UpgradeSeriesStatus { UpgradeSeriesNotStarted : { UpgradeSeriesPrepareStarted , UpgradeSeriesValidate , UpgradeSeriesError , } , UpgradeSeriesValidate : { UpgradeSeriesPrepareStarted , UpgradeSeriesError , } , UpgradeSeriesPrepareStarted : { UpgradeSeriesPrepareRunning , UpgradeSeriesError , } , UpgradeSeriesPrepareRunning : { UpgradeSeriesPrepareCompleted , UpgradeSeriesError , } , UpgradeSeriesPrepareCompleted : { UpgradeSeriesCompleteStarted , UpgradeSeriesError , } , UpgradeSeriesCompleteStarted : { UpgradeSeriesCompleteRunning , UpgradeSeriesError , } , UpgradeSeriesCompleteRunning : { UpgradeSeriesCompleted , UpgradeSeriesError , } , UpgradeSeriesCompleted : { UpgradeSeriesError , } , UpgradeSeriesError : { } , } }
UpgradeSeriesGraph defines a graph for moving between vertices of an upgrade
series.
UpgradeSeriesGraph defines a graph for moving between vertices of an upgrade series .
// Some clients are older and don't know about the validation phase, so // in that case we allow them to jump to prepare-started.