Help us shape the future of Go! Take the 2026 Go Developer Survey

updater

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubOwner = "flatrun"
	GitHubRepo  = "agent"
	BinaryName  = "flatrun-agent"
)

Variables

This section is empty.

Functions

func RestartService

func RestartService() error

func Rollback

func Rollback() error

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
	Size               int64  `json:"size"`
}

type Release

type Release struct {
	TagName     string  `json:"tag_name"`
	Name        string  `json:"name"`
	PublishedAt string  `json:"published_at"`
	Assets      []Asset `json:"assets"`
}

type UpdateResult

type UpdateResult struct {
	CurrentVersion  string
	LatestVersion   string
	UpdateAvailable bool
	Downloaded      bool
	Installed       bool
	Message         string
}

func CheckForUpdate

func CheckForUpdate() (*UpdateResult, error)

func Update

func Update(force bool) (*UpdateResult, error)

Jump to

Keyboard shortcuts

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