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

Method inspect_container

crates/openshell-driver-podman/src/client.rs:460–468  ·  view source on GitHub ↗

Inspect a container by name or ID.

(&self, name: &str)

Source from the content-addressed store, hash-verified

458
459 /// Inspect a container by name or ID.
460 pub async fn inspect_container(&self, name: &str) -> Result<ContainerInspect, PodmanApiError> {
461 validate_name(name)?;
462 self.request_json(
463 hyper::Method::GET,
464 &format!("/libpod/containers/{name}/json"),
465 None,
466 )
467 .await
468 }
469
470 /// List containers matching a label filter (e.g. `"openshell.managed=true"`).
471 pub async fn list_containers(

Callers 6

delete_sandboxMethod · 0.80
sandbox_existsMethod · 0.80
get_sandboxMethod · 0.80
list_sandboxesMethod · 0.80
start_watchFunction · 0.80
map_podman_eventFunction · 0.80

Calls 2

validate_nameFunction · 0.85
request_jsonMethod · 0.80

Tested by

no test coverage detected