updatecheck

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 6 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) (bool, string, 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