Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the deamon updates check engine which fetches updates status from Torus repository. It can be asked for the latest version available upstream and if it's higher than the current one.
func NewEngine ¶
NewEngine creates a new Engine based on the provided config structure. It can be extended by passing specific options which alter the initialization of the Engine itself.
func (*Engine) SetTimeManager ¶
func (e *Engine) SetTimeManager(manager TimeManager) func(*Engine)
SetTimeManager is a configuration function for `NewEngine` which sets the Engine's TimeManager instance to the `manager` argument.
func (*Engine) VersionInfo ¶
VersionInfo returns a boolean representing if the current version is behind the latest one available for download and the latest version available.
type TimeManager ¶
TimeManager is a proxy interface with a Now() method which returns the current time with the appropriate conventions.
type VersionInfo ¶
VersionInfo maps the JSON returned from the `url` endpoint, containing the latest version available info.