update

package
v0.7.0-rc.8 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 Imports: 24 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 update coordinates durable, user-approved node updates.

Index

Constants

View Source
const LockPath = paths.RuntimeDir + "/operations.lock"
View Source
const Root = paths.PrivateDir + "/updates"
View Source
const Service = protocol.WorkerUnit

Variables

This section is empty.

Functions

func Cancel

func Cancel(id string) (protocol.Status, error)

Cancel releases maintenance admission only before host changes can begin. Downloaded artifacts and the terminal record remain available for inspection.

func InstalledVersion

func InstalledVersion(version string) error

InstalledVersion prevents a helper left in memory from applying older rules after the worker has published the new executable.

func Launch

func Launch() error

Launch is a small, retained entry point. It reads only the installed side's part of the record and checks the approved target bytes; the target implements its own host changes.

func MutationGuard

func MutationGuard() error

MutationGuard is called while holding LockPath. An interrupted job continues to exclude conflicting writes even while no worker is running.

func Prepare

func Prepare(current, version string) (protocol.Review, error)

Prepare authenticates the release before showing its plan. It never stops a service or executes the candidate. The approval identifies the archive bytes.

func Resume

func Resume(id string) (protocol.Status, error)

func RunWorker

func RunWorker(version string) error

func Self

func Self(version string, progress func(int)) error

Self completes an accepted VPN binary update in the root helper. The helper admits the target against its running version before calling this operation. Observer disconnection does not cancel accepted work. This workflow has no durable recovery record or automatic rollback; failures retain the workspace.

func Start

func Start(current, id string) (protocol.Status, error)

func Status

func Status() (protocol.Status, error)

func ValidateBuild

func ValidateBuild(m protocol.Manifest, version string) error

ValidateBuild checks that the plan can be executed by this worker.

Types

This section is empty.

Directories

Path Synopsis
Package files provides the durable file operations used by managed updates.
Package files provides the durable file operations used by managed updates.
Package protocol defines the signed, versioned managed-release contract.
Package protocol defines the signed, versioned managed-release contract.

Jump to

Keyboard shortcuts

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