updater

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoOwner    = "izll"
	RepoName     = "agent-session-manager"
	BinaryName   = "asmgr"
	CheckTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate(currentVersion string) string

CheckForUpdate checks if a newer version is available Returns the new version string if available, empty string if up to date

func DownloadAndInstall

func DownloadAndInstall(version string) error

DownloadAndInstall downloads and installs the specified version

Types

type GitHubRelease

type GitHubRelease struct {
	TagName     string    `json:"tag_name"`
	PublishedAt time.Time `json:"published_at"`
}

Jump to

Keyboard shortcuts

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