(value: PodmanApiError)
| 26 | |
| 27 | impl From<PodmanApiError> for ComputeDriverError { |
| 28 | fn from(value: PodmanApiError) -> Self { |
| 29 | match value { |
| 30 | PodmanApiError::Conflict(_) => Self::AlreadyExists, |
| 31 | PodmanApiError::NotFound(msg) => Self::Message(format!("not found: {msg}")), |
| 32 | other => Self::Message(other.to_string()), |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | /// Podman compute driver managing sandbox containers via the Podman REST API. |
nothing calls this directly
no outgoing calls
no test coverage detected