forked from NationTech/harmony
14 lines
320 B
Rust
14 lines
320 B
Rust
mod ssh;
|
|
mod local_file;
|
|
use async_trait::async_trait;
|
|
pub use ssh::*;
|
|
pub use local_file::*;
|
|
|
|
use crate::Error;
|
|
|
|
#[async_trait]
|
|
pub trait ConfigManager: std::fmt::Debug + Send + Sync {
|
|
async fn load_as_str(&self) -> Result<String, Error>;
|
|
async fn apply_new_config(&self, content: &str) -> Result<(), Error>;
|
|
}
|