version

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionRegexp = regexp.MustCompile("^" + v.VersionRegexpRaw + "$")
	SemverRegexp  = regexp.MustCompile("^" + v.SemverRegexpRaw + "$")
)

Functions

func DownloadUrl

func DownloadUrl() string

DownloadUrl return with the proper download link

func NetbirdVersion

func NetbirdVersion() string

NetbirdVersion returns the Nirvati Connect version

Types

type ReleaseInfo added in v0.1.26

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
}

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(httpAgent string) *Update

NewUpdate instantiate Update and start to fetch the new version information

func NewUpdateAndStart added in v0.2.3

func NewUpdateAndStart(httpAgent string) *Update

func (*Update) LatestVersion added in v0.2.3

func (u *Update) LatestVersion() *goversion.Version

func (*Update) SetDaemonVersion

func (u *Update) SetDaemonVersion(newVersion string) bool

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

func (*Update) StartFetcher added in v0.2.3

func (u *Update) StartFetcher()

func (*Update) StopWatch

func (u *Update) StopWatch()

StopWatch stop the version info fetch loop

Jump to

Keyboard shortcuts

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