update

package
v0.39.8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package update provides self-update functionality for bosun.

Index

Constants

This section is empty.

Variables

This section is empty.

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
}

Release contains information about an available update.

func CheckForUpdate

func CheckForUpdate(currentVersion string) (*Release, bool, error)

CheckForUpdate checks if a newer version is available.

func Update

func Update(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