Add support for staging and purging

This commit is contained in:
Daniel
2020-11-24 16:45:57 +01:00
parent f21c16956a
commit 6c9d8535d5
14 changed files with 442 additions and 93 deletions

View File

@@ -35,6 +35,8 @@ type versions struct {
Core *info.Info
Resources map[string]*updater.Resource
Beta bool
Staging bool
internalSave bool
}
@@ -43,6 +45,8 @@ func initVersionExport() (err error) {
// init export struct
versionExport = &versions{
internalSave: true,
Beta: registry.Beta,
Staging: staging,
}
versionExport.SetKey(versionsDBKey)