update

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate(ctx context.Context, stateFilePath, repoOwner, repoName, currentVersion string) (*github.RepositoryRelease, error)

CheckForUpdate checks whether this software has had a newer release on GitHub

Types

type StateEntry

type StateEntry struct {
	CheckedForUpdateAt time.Time                `yaml:"checked_for_update_at"`
	LatestRelease      github.RepositoryRelease `yaml:"latest_release"`
}

StateEntry is the state file entry.

Jump to

Keyboard shortcuts

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