Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNeedUpdate ¶
GetNeedUpdate returns true whether a newer version of Gitea is available
func GetRemoteVersion ¶
GetRemoteVersion returns the current remote version (or currently installed version if fail to fetch from DB)
func GiteaUpdateChecker ¶
GiteaUpdateChecker returns error when new version of Gitea is available
Types ¶
type CheckerState ¶
type CheckerState struct {
LatestVersion string
}
CheckerState stores the remote version from the JSON endpoint
func (*CheckerState) Name ¶
func (r *CheckerState) Name() string
Name returns the name of the state item for update checker
Click to show internal directories.
Click to hide internal directories.