updater

package
v2026.609.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 ExecInstallRestart(ctx context.Context, tag string) error

func Install

func Install(ctx context.Context, tag string, progress io.Writer) error

func InstallCommand added in v2026.603.0

func InstallCommand(tag string) (string, error)

func IsNewerRelease

func IsNewerRelease(latestTag, current string) bool

func ReleaseAssetName

func ReleaseAssetName(tag string) (string, error)

func RunSystemInstall added in v2026.603.0

func RunSystemInstall(ctx context.Context, tag string, progress io.Writer) error

func SetLatestReleaseAPIURL

func SetLatestReleaseAPIURL(url string) func()

func SetScheduleInstallRestartHook added in v2026.605.0

func SetScheduleInstallRestartHook(fn func(context.Context, string, io.Writer) error) func()

Types

type CheckResult

type CheckResult struct {
	Current   string
	LatestTag string
	Newer     bool
	Err       error
}

func Check

func Check(ctx context.Context, currentVersion string) CheckResult

func (CheckResult) Notice

func (r CheckResult) Notice() *Notice

type Notice

type Notice struct {
	Current string
	Latest  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL