autoupdate

package
v0.0.0-...-c063610 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2015 License: Apache-2.0, MIT Imports: 6 Imported by: 0

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 NewUpdater

func NewUpdater() *Updater

NewUpdater creates a new Updater instance.

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

func (u *Updater) BinaryUpdate() bool

BinaryUpdate returns true if the materials binary has been updated.

func (*Updater) UpdatesAvailable

func (u *Updater) UpdatesAvailable() bool

UpdatesAvailable checks if updates are available for either the website or the materials binary. If updates are available it will download them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL