Documentation
¶
Index ¶
- Variables
- func ExecInstallRestart(ctx context.Context, tag string) error
- func ExecInstallRestartForTest(ctx context.Context, tag string) error
- func FinishUpgradeRestart(ctx context.Context, tag string) error
- func Install(ctx context.Context, tag string, progress io.Writer) error
- func InstallCommand(tag string) (string, error)
- func InstallFallbackMessage(tag string) string
- func IsNewerRelease(latestTag, current string) bool
- func ReleaseAssetName(tag string) (string, error)
- func RunSystemInstall(ctx context.Context, tag string, progress io.Writer) error
- func SetExecInstallRestartHook(fn func(context.Context, string) error) func()
- func SetHTTPDownload(fn func(context.Context, string) (*http.Response, error)) func()
- func SetLatestReleaseAPIURL(url string) func()
- func SetScheduleInstallRestartHook(fn func(context.Context, string, io.Writer) error) func()
- func SimulateUpgradeExitRestartForTest(tag string) error
- func UsesExecInstallRestartAfterSystemInstall() bool
- func UsesExecInstallRestartAfterSystemInstallForTest() bool
- func WindowsInstallRestartScriptBodyForTest(pid int, tag, cwd, exe string, args []string) (string, error)
- type CheckResult
- type Notice
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRestartScheduled = errors.New("restart scheduled after update")
Functions ¶
func ExecInstallRestart ¶ added in v2026.609.2
func ExecInstallRestartForTest ¶ added in v2026.701.3
func FinishUpgradeRestart ¶ added in v2026.701.0
func InstallCommand ¶ added in v2026.603.0
func InstallFallbackMessage ¶ added in v2026.621.0
func IsNewerRelease ¶
func ReleaseAssetName ¶
func RunSystemInstall ¶ added in v2026.603.0
func SetExecInstallRestartHook ¶ added in v2026.701.0
func SetHTTPDownload ¶ added in v2026.613.0
func SetLatestReleaseAPIURL ¶
func SetLatestReleaseAPIURL(url string) func()
func SetScheduleInstallRestartHook ¶ added in v2026.605.0
func SimulateUpgradeExitRestartForTest ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstall ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstall() bool
func UsesExecInstallRestartAfterSystemInstallForTest ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstallForTest() bool
Types ¶
type CheckResult ¶
func (CheckResult) Notice ¶
func (r CheckResult) Notice() *Notice
Click to show internal directories.
Click to hide internal directories.