Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VersionRegexp = regexp.MustCompile("^" + v.VersionRegexpRaw + "$") SemverRegexp = regexp.MustCompile("^" + v.SemverRegexpRaw + "$") )
Functions ¶
Types ¶
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
Update fetch the version info periodically and notify the onUpdateListener in case the UI version or the daemon version are deprecated
func NewUpdate ¶
func NewUpdate() *Update
NewUpdate instantiate Update and start to fetch the new version information
func (*Update) SetDaemonVersion ¶
SetDaemonVersion update the currently running daemon version. If new version is available it will trigger the onUpdateListener
func (*Update) SetOnUpdateListener ¶
func (u *Update) SetOnUpdateListener(updateFn func())
SetOnUpdateListener set new update listener
Click to show internal directories.
Click to hide internal directories.