MCPcopy Create free account
hub / github.com/GCWing/BitFun / ssh_save_connection

Function ssh_save_connection

src/apps/desktop/src/api/ssh_api.rs:47–63  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    config: SSHConnectionConfig,
)

Source from the content-addressed store, hash-verified

45
46#[tauri::command]
47pub async fn ssh_save_connection(
48 state: State<'_, AppState>,
49 config: SSHConnectionConfig,
50) -> Result<(), String> {
51 log::info!(
52 "ssh_save_connection called: id={}, host={}, port={}, username={}",
53 config.id,
54 config.host,
55 config.port,
56 config.username
57 );
58 let manager = state.get_ssh_manager_async().await?;
59 manager
60 .save_connection(&config)
61 .await
62 .map_err(|e| e.to_string())
63}
64
65#[tauri::command]
66pub async fn ssh_delete_connection(

Callers

nothing calls this directly

Calls 2

get_ssh_manager_asyncMethod · 0.80
save_connectionMethod · 0.45

Tested by

no test coverage detected