Adds client/connect.rs with ConnectOptions (programmatic API per ADR-011), ClientSession::new() for SSH session establishment, ClientSession::run() for SOCKS5 + port forwards + shutdown, and graceful shutdown via SIGTERM/SIGINT with SSH disconnect and 2s drain timeout.
14 lines
464 B
Rust
14 lines
464 B
Rust
pub mod transport;
|
|
pub mod client;
|
|
pub mod server;
|
|
pub mod auth;
|
|
pub mod socks5;
|
|
pub mod error;
|
|
|
|
#[cfg(feature = "testutil")]
|
|
pub mod testutil;
|
|
|
|
pub use error::{AuthError, ChannelError, ConfigError, ForwardError, TransportError};
|
|
pub use transport::{Transport, TransportAcceptor, TransportInfo, TransportKind};
|
|
pub use client::channel_manager::{ChannelManager, ForwardRequest};
|
|
pub use client::connect::{ClientSession, ConnectError, ConnectOptions, TransportMode}; |