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 (*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).
func (*AutoUpdater) ForceCheckAndUpdate ¶ added in v0.10.1
func (u *AutoUpdater) ForceCheckAndUpdate(ctx context.Context) bool
ForceCheckAndUpdate bypasses the rate limit. Use for manual `update` command.
type GitHubRelease ¶
Click to show internal directories.
Click to hide internal directories.