update

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 19 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 string) error

func Status

func Status() (string, string)

func Supervise

func Supervise(config string) error

The supervisor retains the old executable until the candidate completes an authenticated poll.

Types

type State

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

Jump to

Keyboard shortcuts

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