Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore contains the information and variables to ensure the Software is up to date for storagenode.
func NewChore ¶
func NewChore(log *zap.Logger, service *checker.Service, notifications *notifications.Service, nodeID storj.NodeID, checkInterval time.Duration) *Chore
NewChore creates a Version Check Client with default configuration for storagenode.
func (*Chore) Run ¶
Run logs the current version information and detects if software outdated, if so - sends notifications.
func (*Chore) TestCheckVersion ¶ added in v1.9.1
TestCheckVersion returns chore.relevance, used for chore tests only.
func (*Chore) TestSetNow ¶ added in v1.9.1
TestSetNow allows tests to have the Service act as if the current time is whatever they want. This avoids races and sleeping, making tests more reliable and efficient.
type Relevance ¶ added in v1.8.1
type Relevance struct { ExpectedVersion version.SemVer IsOutdated bool FirstTimeSpotted time.Time TimesNotified notifications.TimesNotified }
Relevance contains information about software being outdated.
Click to show internal directories.
Click to hide internal directories.