update

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package update implements the shared, explicit version inventory behind nova-update and nova-version. It never discovers homes or installs on a verdict.

Index

Constants

View Source
const ChildCap = 64 * 1024
View Source
const HTTPCap = 256 * 1024
View Source
const Header = "name\tkind\tinstalled\tlatest\tapply\towner"

Variables

View Source
var Kinds = []string{"harness", "engine", "model", "tool", "pin"}

Functions

func Compare

func Compare(a, b string) string

Compare orders only equally long, plain numeric release tags. Arbitrary-size components avoid both floating-point loss and machine integer overflow.

func Main

func Main(name string, args []string, stamp string, out, errs io.Writer) int

func Run

func Run(name string, args []string, stamp string, out, errs io.Writer, env Environment) int

Types

type Entry

type Entry struct {
	Name, Kind, Latest, Owner string
	Installed, Apply          []string
}

func Load

func Load(r io.Reader) ([]Entry, error)

type Environment

type Environment struct {
	Now    func() time.Time
	Client *http.Client
}

Environment supplies deterministic clock/network seams. Nil values use the machine clock and a credential-free, redirect-bounded HTTP client.

type ProcessResult

type ProcessResult struct{ Stdout, Stderr, Path, Reason string }

type Read

type Read struct{ Raw, Version, Path, Reason, Remedy, Source string }

func Installed

func Installed(ctx context.Context, e Entry, timeout time.Duration, report bool) Read

func Latest

func Latest(ctx context.Context, e Entry, timeout time.Duration, client *http.Client) Read

Latest reads only the declared endpoint, without credentials or persistent cache.

func (Read) Known

func (r Read) Known() bool

Jump to

Keyboard shortcuts

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