update

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 23 Imported by: 0

Documentation

Overview

Package update implements the optional, operator-invoked release updater.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Component, BinDir, StateDir string
	AllowNetwork                bool
}

type Result

type Result struct {
	Component         string `json:"component"`
	InstalledVersion  string `json:"installedVersion,omitempty"`
	InstalledBuild    int    `json:"installedBuild,omitempty"`
	AvailableTag      string `json:"availableTag,omitempty"`
	Freshness         string `json:"freshness"`
	Action            string `json:"action"`
	Qualification     string `json:"qualification"`
	PublisherIdentity string `json:"publisherIdentity"`
	Receipt           string `json:"receipt,omitempty"`
}

func Run

func Run(ctx context.Context, command string, c Config) (Result, error)

Jump to

Keyboard shortcuts

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