feat(connection): test SSH tunnel profiles
This commit is contained in:
1 parent
27c60f0d30
commit
c7991b316e
19 files changed
+256
-4
No files matched your search
@@ -61,6 +61,7 @@ export const saveConnections = forward("saveConnections");
|
||||
export const loadConnections = forward("loadConnections");
|
||||
export const loadTunnelProfiles = forward("loadTunnelProfiles");
|
||||
export const saveTunnelProfiles = forward("saveTunnelProfiles");
|
||||
export const testTunnelProfile = forward("testTunnelProfile");
|
||||
export const readKeychainPassword = forward("readKeychainPassword");
|
||||
export const readKeychainPasswords = forward("readKeychainPasswords");
|
||||
export const decryptConfig = forward("decryptConfig");
|
||||
|
||||
@@ -245,6 +245,10 @@ export async function saveTunnelProfiles(profiles: TunnelProfile[]): Promise<voi
|
||||
return post("/api/tunnel-profiles/save", { profiles });
|
||||
}
|
||||
|
||||
export async function testTunnelProfile(profile: TunnelProfile): Promise<string> {
|
||||
return post("/api/tunnel-profiles/test", profile);
|
||||
}
|
||||
|
||||
export async function readKeychainPassword(_service: string): Promise<string> {
|
||||
return ""; // Not available in web backend
|
||||
}
|
||||
|
||||
@@ -1120,6 +1120,10 @@ export async function saveTunnelProfiles(profiles: TunnelProfile[]): Promise<voi
|
||||
return invoke("save_tunnel_profiles", { profiles });
|
||||
}
|
||||
|
||||
export async function testTunnelProfile(profile: TunnelProfile): Promise<string> {
|
||||
return invoke("test_tunnel_profile", { profile });
|
||||
}
|
||||
|
||||
export async function readKeychainPassword(service: string): Promise<string> {
|
||||
return invoke("read_keychain_password", { service, account: null });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user