Documentation
¶
Index ¶
- func InstallPowerShellURL() string
- func InstallShellURL() string
- func InstallerEnv(base []string) []string
- func IsNewer(latestTag, currentVersion string) bool
- func IsTimeout(err error) bool
- func ShouldCheck(currentVersion string) bool
- func StripV(v string) string
- func UpdateBaseURL() string
- type CheckResult
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallPowerShellURL ¶
func InstallPowerShellURL() string
func InstallShellURL ¶
func InstallShellURL() string
func InstallerEnv ¶ added in v1.3.7
func ShouldCheck ¶
func UpdateBaseURL ¶ added in v1.3.7
func UpdateBaseURL() string
Types ¶
type CheckResult ¶
type CheckResult struct {
CurrentVersion string
LatestVersion string
LatestURL string
UpdateAvailable bool
}
func CheckForUpdate ¶
func CheckForUpdate(currentVersion string) (*CheckResult, error)
func CheckForUpdateAuto ¶ added in v1.3.7
func CheckForUpdateAuto(currentVersion string) (*CheckResult, error)
func StateHasUpdate ¶ added in v1.0.2
func StateHasUpdate(currentVersion string) *CheckResult
Click to show internal directories.
Click to hide internal directories.