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

Method inspect_volume

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

Inspect a named volume. Does not create the volume.

(&self, name: &str)

Source from the content-addressed store, hash-verified

509
510 /// Inspect a named volume. Does not create the volume.
511 pub async fn inspect_volume(&self, name: &str) -> Result<VolumeInspect, PodmanApiError> {
512 validate_name(name)?;
513 self.request_json(
514 hyper::Method::GET,
515 &format!("/libpod/volumes/{name}/json"),
516 None,
517 )
518 .await
519 }
520
521 // ── Network operations ───────────────────────────────────────────────
522

Calls 2

validate_nameFunction · 0.85
request_jsonMethod · 0.80

Tested by

no test coverage detected