update

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package update installs official agent releases after the host drains.

Index

Constants

View Source
const ExitReady = 75

Variables

View Source
var ErrReady = errors.New("agent update ready")

Functions

func Healthy

func Healthy(ctx context.Context) error

func Prepare

func Prepare(ctx context.Context, version, request string) error

func Status

func Status() (string, string, string)

func Supervise

func Supervise(config string) error

The recovery process survives updates; each candidate supervisor owns its own worker.

func SuperviseWorker added in v0.2.7

func SuperviseWorker(config string) error

Types

type State

type State struct {
	Target        string `json:"target"`
	Request       string `json:"request"`
	Pending       bool   `json:"pending"`
	FailedVersion string `json:"failed_version"`
	FailedRequest string `json:"failed_request"`
	Error         string `json:"error"`
}

Jump to

Keyboard shortcuts

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