Skip to main content

Crate oxdock_ssh_plugin

Crate oxdock_ssh_plugin 

Source
Expand description

Ephemeral user-space SSH for OxDock scripts.

This crate exposes an SSH host module through the Engine facade: SSH_SERVE spins up a loopback SSH server with ephemeral credentials held only in memory, while SSH_DEQUEUE exposes each session’s metadata before SSH_PUMP_CHANNEL bridges it through explicit DSL pipes (SSH_ACCEPT combines both for simple loops). No OS users, no sshd_config, and no Docker are involved; killing the process removes every trace.

Modules§

diagnostics
SSH user-facing errors behind single constructors with stable keys.

Structs§

SshServerTag
Handle to one ephemeral SSH server instance.
SshSessionTag
Handle to one dequeued SSH session instance.

Functions§

generate_password
Generate a random password (256 bits, hex) for one server. Committed scripts and tests carry no usable credential: generate at runtime, hand the value to both sides, drop it after.
module
The SSH host module with the default process manager.
module_with
The SSH host module: virtual-endpoint server plus client, bridged to DSL pipes. Generic over the process manager like every host module.
module_with_endpoints
The SSH host module resolving through registry: the registry travels as module state (HostModule::with_state) for bodies to fetch from cx, so every entry stays #[oxdock_func]. Everything else reaches the same registry through its SSH_SERVER handle. A pre-run service check rides along: every service the steps name must be fully bound before execution starts.

Type Aliases§

DefaultProcessManager