update

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	IsUpdate         bool
	CurrentVersion   string
	LatestVersion    string
	LatestReleaseURL string
}

Info describes an update.

func Check

func Check(ctx context.Context, statePath, currentVersion string, checkInterval time.Duration) (*Info, error)

Check checks for updates if the last check was older than checkInterval. The last update check time is tracked in the file at statePath. Returns nil if no check was performed.

Jump to

Keyboard shortcuts

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