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

Method create_volume

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

Create a named volume. Idempotent (conflict is ignored).

(&self, name: &str)

Source from the content-addressed store, hash-verified

486
487 /// Create a named volume. Idempotent (conflict is ignored).
488 pub async fn create_volume(&self, name: &str) -> Result<(), PodmanApiError> {
489 validate_name(name)?;
490 self.create_ignore_conflict("/libpod/volumes/create", &serde_json::json!({"Name": name}))
491 .await
492 }
493
494 /// Remove a named volume. Idempotent (not-found is ignored).
495 pub async fn remove_volume(&self, name: &str) -> Result<(), PodmanApiError> {

Callers 2

create_sandboxMethod · 0.80
createMethod · 0.80

Calls 2

validate_nameFunction · 0.85

Tested by 1

createMethod · 0.64