updater

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoUpdater

type AutoUpdater struct {
	// contains filtered or unexported fields
}

AutoUpdater silently checks for and installs agent updates.

func New

func New(currentVersion string) *AutoUpdater

New creates a new AutoUpdater.

func (*AutoUpdater) CheckAndUpdate

func (u *AutoUpdater) CheckAndUpdate(ctx context.Context) bool

CheckAndUpdate checks for a new version and installs it if available. Safe to call frequently — internally rate-limited to once per hour. Returns true if an update was installed (caller should restart).

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

Jump to

Keyboard shortcuts

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