updater

package
v0.0.0-...-82567e2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheTransport

func CacheTransport(tripper http.RoundTripper, cache httpcache.Cache) http.RoundTripper

Types

type Updater

type Updater struct {
	CacheDir   string
	HTTPClient *http.Client
	Output     io.Writer
	Timeout    time.Duration
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater(cacheDir string, output io.Writer, debug bool) Updater

func (*Updater) CheckForNewVersion

func (updater *Updater) CheckForNewVersion(currentVersionStr string)

CheckForNewVersion does a simple check once (within the Updater.Timeout timeframe) for new version available and display a warning if a new version is found.

Jump to

Keyboard shortcuts

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