netmaker/netclient/functions/upgrades/upgrades.go
2022-08-26 12:08:30 -04:00

21 lines
403 B
Go

package upgrades
func init() {
addUpgrades([]UpgradeInfo{
upgrade0145,
upgrade0146,
})
}
// 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
}