updater

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: AGPL-3.0, AGPL-3.0-or-later, AGPL-3.0, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelAuto   = "auto"
	ChannelStable = "stable"
	ChannelBeta   = "beta"
	ChannelRC     = "rc"
)
View Source
const DefaultManifestURL = "https://cetus.cenvero.org/manifest.json"

Variables

This section is empty.

Functions

func ChannelForVersion

func ChannelForVersion(version string) string

func IsHomebrewManaged

func IsHomebrewManaged() (bool, string)

func ResolveChannel

func ResolveChannel(currentVersion, requested string) (string, error)

Types

type ApplyResult

type ApplyResult struct {
	Check         *CheckResult
	Applied       bool
	InstalledPath string
}

func Apply

func Apply(ctx context.Context, currentVersion, manifestURL, channel string, force bool) (*ApplyResult, error)

type Binary

type Binary struct {
	URL          string `json:"url"`
	SHA256       string `json:"sha256"`
	SignatureURL string `json:"signature_url"`
	Size         int64  `json:"size"`
}

type Channel

type Channel struct {
	Version         string   `json:"version"`
	ReleaseDate     string   `json:"release_date"`
	MinSupported    string   `json:"min_supported"`
	ReleaseNotesURL string   `json:"release_notes_url"`
	History         []string `json:"history"`
}

type CheckResult

type CheckResult struct {
	CurrentVersion    string
	LatestVersion     string
	Channel           string
	Platform          string
	ReleaseNotesURL   string
	Binary            Binary
	UpdateAvailable   bool
	CurrentComparable bool
	HomebrewManaged   bool
	HomebrewPath      string
}

func Check

func Check(ctx context.Context, currentVersion, manifestURL, channel string) (*CheckResult, error)

type Manifest

type Manifest struct {
	GeneratedAt string                      `json:"generated_at"`
	Channels    map[string]Channel          `json:"channels"`
	Binaries    map[string]PlatformBinaries `json:"binaries"`
}

type PlatformBinaries

type PlatformBinaries map[string]Binary

Jump to

Keyboard shortcuts

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