updatecheck

package
v1.22.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableUpdates

func AvailableUpdates(repoOrg string, repoName string, currentVersion string) (avail bool, newVersion string, releaseURL string, err error)

AvailableUpdates returns true (along with a release URL) if there is an update available in the specified repo which is newer than the currentVersion string.

func IsUpdateNeeded

func IsUpdateNeeded(filepath string, updateInterval time.Duration) (bool, error)

IsUpdateNeeded returns true if the modification date on filepath is older than the duration specified.

func ResetUpdateTime

func ResetUpdateTime(filepath string) error

ResetUpdateTime resets the file modification date on filepath by removing and re-creating the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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