Skip to main content

Crate soma_fleet

Crate soma_fleet 

Source
Expand description

Neutral host topology, connection, transfer, and bounded fanout contracts.

soma-fleet defines transport-independent identities, topology snapshots, request bounds, execution ports, revision-keyed connection caching, and a cancellation-aware fanout scheduler. Product configuration, authorization, command allowlists, and concrete SSH clients live above or behind this crate.

Structs§

CapabilityName
Lowercase dotted capability advertised by a host or transport.
CommandOutput
Bounded command execution output.
CommandRequest
Bounded exec-style command request with no shell interpretation.
ConnectionCache
Thread-safe connection cache bound to exact host topology revisions.
ConnectionPool
Async connection pool keyed by stable host identity and exact topology revision.
FanoutPolicy
Bounds for concurrent target execution.
FanoutReport
Complete stable-order fanout report.
FanoutScheduler
Cancellation-aware stable-order bounded fanout scheduler.
FleetEvent
Product-neutral fleet lifecycle event.
ForwardedUnixSocket
RAII guard over one local-to-remote Unix socket forward.
HostId
Stable lowercase identity for one managed host.
HostRecord
Product-neutral managed host record.
HttpEndpoint
Validated HTTP or HTTPS fleet endpoint.
LocalProcessDriver
Local process-backed command driver used for conformance and local hosts.
NoopFleetEventSink
Event sink that discards all events.
OpenSshConnectPlan
Inspectable strict OpenSSH connection plan derived from one host record.
OpenSshConnection
Revision-bound multiplexed OpenSSH session.
OpenSshConnector
Strict OpenSSH connection factory.
OpenSshDriver
Pooled strict OpenSSH command driver.
PoolKey
Connection-cache key bound to host identity and exact topology revision.
SshEndpoint
Strict-host-key SSH connection material.
SystemFleetClock
System-wall-clock implementation.
TargetOutcome
Stable-order result for one target.
TopologyRevision
SHA-256 revision of all transport-affecting topology material.
TopologySnapshot
Immutable topology snapshot with unique host identities.
TransferGuard
RAII transfer accounting guard.
TransferLifecycle
Cloneable observer for one transfer guard.
TransferReceipt
Verified transfer completion metadata.
TransferRequest
Descriptor-confined transfer request between managed hosts.

Enums§

FanoutPolicyError
Invalid bounded fanout policy.
FleetError
Product-neutral fleet discovery, connection, command, and transfer failure.
FleetEventKind
Stable fleet lifecycle event category.
HostEndpoint
Transport endpoint for one managed host.
IdentityError
Invalid fleet identity.
RequestError
Invalid fleet command or transfer request.
TargetOutcomeKind
Terminal classification for one target.
TopologyError
Invalid host endpoint or topology snapshot.
TransferGuardState
Observable terminal or in-flight transfer state.

Traits§

CommandExecutor
Exec-style command driver for local, SSH, or other host transports.
ConnectionFactory
Driver that opens and closes revision-bound host connections.
FileTransfer
Descriptor-confined file transfer driver.
FleetClock
Clock used for request deadline admission and deterministic tests.
FleetEventSink
Sink for durable or observable fleet lifecycle events.
HostRepository
Source of immutable fleet topology snapshots.

Functions§

forwarded_socket_path
Returns a private deterministic-shape local path for a forwarded Unix socket.

Type Aliases§

FleetResult
Fleet operation result using the shared error vocabulary.