netmaker/netclient/functions/upgrades/upgrades.go

22 lines
403 B
Go
Raw Normal View History

2022-06-30 22:42:10 +08:00
package upgrades
func init() {
addUpgrades([]UpgradeInfo{
2022-08-27 00:08:30 +08:00
upgrade0145,
upgrade0146,
2022-06-30 22:42:10 +08:00
})
}
// 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
}