Documentation ¶
Index ¶
Constants ¶
View Source
const StateStructVersion = 20220411
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { LastCheck string `json:"last_checked"` // an RFC3339 encoded time stamp InstallationID string `json:"installation_id"` // a UUIDv4 string StructVersion int64 `json:"struct_version"` // legacy properties included for backwards compatibility with v0.13 LegacyLastCheck string `json:"lastChecked"` LegacyInstallationID string `json:"installationId"` }
State is a struct containing installation state
func (*State) IsValid ¶
IsValid checks whether the struct was correctly deserialized, by checking if the StructVersion is populated
func (*State) MaintainLegacy ¶
func (s *State) MaintainLegacy()
MaintainLegacy keeps the values of the legacy properties for backward compatibility
func (*State) MigrateFrom ¶
func (s *State) MigrateFrom() migrate.Migrateable
Click to show internal directories.
Click to hide internal directories.