updates

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package updates provides the release inventory shared by CLI, TUI and web.

Index

Constants

View Source
const PollInterval = time.Hour
View Source
const Repository = "ATCUSA/hamstack"

Variables

View Source
var Version = "dev"

Version is set by release builds with -ldflags '-X github.com/ATCUSA/hamstack/internal/updates.Version=vX.Y.Z'.

Functions

func Current

func Current() string

func Start

func Start()

Types

type Program

type Program struct {
	Name      string `json:"name"`
	Installed string `json:"installed"`
	Latest    string `json:"latest"`
	Origin    string `json:"origin"`
	Status    string `json:"status"`
	Error     string `json:"error,omitempty"`
}

type Snapshot

type Snapshot struct {
	Checked  time.Time `json:"checked"`
	Loading  bool      `json:"loading"`
	Programs []Program `json:"programs"`
}

func Check

func Check(ctx context.Context, force bool) (Snapshot, error)

func State

func State() Snapshot

Jump to

Keyboard shortcuts

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