Skip to main content

Crate soma_self_update

Crate soma_self_update 

Source
Expand description

A transport-neutral, standalone binary self-update transaction.

The caller must authenticate every UpdateDirective independently (or verify a detached signature). A SHA-256 digest received from the same server as the artifact proves integrity in transit, not publisher identity.

Structs§

StagedArtifact
A fully downloaded artifact whose digest matches its directive.
UpdateDirective
An authenticated update instruction supplied by the adopting service.
UpdateLayout
Caller-controlled paths used by an update transaction.
UpdatePolicy
Resource and lifecycle policy for an updater.
Updater
Reusable update coordinator.
ValidatedArtifact
An artifact that executed successfully and reported its exact target version.

Enums§

ArtifactTransportPolicy
Network transports permitted for an artifact URL.
BackupStrategy
Strategy used to retain the last-confirmed executable for rollback.
ConfirmationOutcome
InstallOutcome
MigrationOutcome
Result of intentionally moving an executable’s durable state authority.
RecoveryAction
Work required while starting a service with possible pending update state.
UpdateError
Errors returned by update policy and transaction operations.

Functions§

reexec
Replaces the current Unix process with the installed executable.
restart_command
Builds a restart command without consulting global process arguments.

Type Aliases§

Result