Documentation
¶
Overview ¶
Package update coordinates durable, user-approved node updates.
Index ¶
- Constants
- func Cancel(id string) (protocol.Status, error)
- func InstalledVersion(version string) error
- func Launch() error
- func MutationGuard() error
- func Prepare(current, version string) (protocol.Review, error)
- func Resume(id string) (protocol.Status, error)
- func RunWorker(version string) error
- func Self(version string, progress func(int)) error
- func Start(current, id string) (protocol.Status, error)
- func Status() (protocol.Status, error)
- func ValidateBuild(m protocol.Manifest, version string) error
Constants ¶
const LockPath = paths.RuntimeDir + "/operations.lock"
const Root = paths.PrivateDir + "/updates"
const Service = protocol.WorkerUnit
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
Cancel releases maintenance admission only before host changes can begin. Downloaded artifacts and the terminal record remain available for inspection.
func InstalledVersion ¶
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 ¶
Prepare authenticates the release before showing its plan. It never stops a service or executes the candidate. The approval identifies the archive bytes.
func Self ¶
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.
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. |