initial ssh key model and creation ui

This commit is contained in:
2024-07-01 06:38:46 -04:00
parent f311fde74e
commit 5e6542d08e
20 changed files with 555 additions and 28 deletions

View File

@@ -410,6 +410,17 @@ pub enum LaunchTerminalError {
}
#[derive(Debug, ThisError, AsRefStr)]
pub enum LoadSshKeyError {
#[error("Passphrase is invalid")]
InvalidPassphrase,
#[error("Could not parse SSH private key data")]
InvalidData(#[from] ssh_key::Error),
#[error(transparent)]
Io(#[from] std::io::Error),
}
// =========================
// Serialize implementations
// =========================
@@ -436,6 +447,7 @@ impl_serialize_basic!(WindowError);
impl_serialize_basic!(LockError);
impl_serialize_basic!(SaveCredentialsError);
impl_serialize_basic!(LoadCredentialsError);
impl_serialize_basic!(LoadSshKeyError);
impl Serialize for HandlerError {