launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/upgrades/operations.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package upgrades 5 6 import "launchpad.net/juju-core/version" 7 8 // upgradeOperations returns an ordered slice of sets of operations needed 9 // to upgrade Juju to particular version. The slice is ordered by target 10 // version, so that the sets of operations are executed in order from oldest 11 // version to most recent. 12 var upgradeOperations = func(context Context) []UpgradeOperation { 13 steps := []UpgradeOperation{ 14 upgradeToVersion{ 15 version.MustParse("1.18.0"), 16 stepsFor118(context), 17 }, 18 } 19 return steps 20 }