Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartUpdateMonitor ¶
func StartUpdateMonitor()
StartUpdateMonitor starts a back ground task that periodically checks for update to the materials command and website, downloads and deploys them. If the materials command is updated then the materials server is restarted.
Types ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
A Updater keeps track of the status of binary and website updates and downloads updates when they are avaiable.
func (*Updater) ApplyUpdates ¶
func (u *Updater) ApplyUpdates()
ApplyUpdates deploys updates that have been downloaded. If the materials binary has been updated then it restarts the server.
func (*Updater) BinaryUpdate ¶
BinaryUpdate returns true if the materials binary has been updated.
func (*Updater) UpdatesAvailable ¶
UpdatesAvailable checks if updates are available for either the website or the materials binary. If updates are available it will download them.