initial ssh key model and creation ui
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user