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.
Click to show internal directories.
Click to hide internal directories.