MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / from

Method from

crates/openshell-driver-podman/src/driver.rs:28–34  ·  view source on GitHub ↗
(value: PodmanApiError)

Source from the content-addressed store, hash-verified

26
27impl 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected