Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNeedUpdate ¶
func GetNeedUpdate() bool
GetNeedUpdate returns true whether a newer version of Gitea is available
func GetRemoteVersion ¶
func GetRemoteVersion() string
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
func UpdateRemoteVersion ¶
UpdateRemoteVersion updates the latest available version of Gitea
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.