update

package
v0.47.8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package update provides self-update functionality for bosun.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilContext indicates that an update operation was called without a context.
	ErrNilContext = errors.New("update context must not be nil")
	// ErrMissingRelease indicates that a detector reported a match without metadata.
	ErrMissingRelease = errors.New("release detector reported a match without release metadata")
)

Functions

func GetPlatformInfo

func GetPlatformInfo() string

GetPlatformInfo returns the current platform information.

Types

type Release

type Release struct {
	Version     string
	ReleaseURL  string
	PublishedAt string
	Changelog   string
	// contains filtered or unexported fields
}

Release contains information about an available update.

func CheckForUpdate

func CheckForUpdate(ctx context.Context, currentVersion string) (*Release, bool, error)

CheckForUpdate checks if a newer version is available.

func Update

func Update(ctx context.Context, currentVersion string) (*Release, error)

Update downloads and installs the latest version.

Jump to

Keyboard shortcuts

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