mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-12 04:25:08 +08:00
22 lines
418 B
Go
22 lines
418 B
Go
package upgrades
|
|
|
|
func init() {
|
|
addUpgrades([]UpgradeInfo{
|
|
upgrade0145,
|
|
upgrade0146,
|
|
upgrade0148,
|
|
})
|
|
}
|
|
|
|
// Upgrades - holds all upgrade funcs
|
|
var Upgrades = []UpgradeInfo{}
|
|
|
|
// addUpgrades - Adds upgrades to make to client
|
|
func addUpgrades(upgrades []UpgradeInfo) {
|
|
Upgrades = append(Upgrades, upgrades...)
|
|
}
|
|
|
|
// ReleaseUpgrades - releases upgrade funcs from memory
|
|
func ReleaseUpgrades() {
|
|
Upgrades = nil
|
|
}
|