podman_rest_client/
error.rs1#[derive(thiserror::Error, Debug)]
2pub enum ClientError {
3 #[cfg(feature = "ssh")]
4 #[error("SSH error: {0}")]
5 Ssh(#[from] russh::Error),
6 #[cfg(feature = "ssh")]
7 #[error("SSH Key error: {0}")]
8 SshKey(#[from] russh_keys::Error),
9
10 #[error("IO error: {0}")]
11 Io(#[from] std::io::Error),
12 #[error("Invalid URI: {0}")]
13 InvalidUri(#[from] http::uri::InvalidUri),
14 #[error("SSH Authentication Failed")]
15 AuthenticationFailed,
16 #[error("Missing or unsupported scheme in URI")]
17 InvalidScheme,
18 #[error("Missing SSH user name in URI")]
19 SshUserNameRequired,
20 #[error("Missing ssh key path")]
21 SshKeyPathRequired,
22 #[error("Missing SSH host in URI")]
23 SshHostRequired,
24 #[error("SSH feature flag not enabled. Rebuild with `ssh` to use ssh uris")]
25 SshFeatureFlagNotEnabled,
26 #[error("Unix domain socket feature flag not enabled. Rebuild with `uds` to use unix uris")]
27 UdsFeatureFlagNotEnabled,
28}