Skip to main content

faucet_sink_sftp/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3//! # faucet-sink-sftp
4//!
5//! SFTP sink connector for the faucet-stream ecosystem.
6//!
7//! Writes `serde_json::Value` records to an SFTP server as JSON Lines objects
8//! under a remote directory. Writes are **atomic** — each object is uploaded to
9//! a temporary name and renamed into place, so consumers never observe a
10//! partial file. Append-only. Connection, authentication, and host-key
11//! verification come from [`faucet-common-sftp`](https://docs.rs/faucet-common-sftp).
12
13pub mod config;
14pub mod sink;
15
16pub use faucet_core::{FaucetError, Sink};
17
18pub use config::SftpSinkConfig;
19pub use faucet_common_sftp::{HostKeyPolicy, SftpAuth, SftpConnectionConfig};
20pub use sink::SftpSink;