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

Method stop_sandbox

crates/openshell-driver-podman/src/driver.rs:615–623  ·  view source on GitHub ↗

Stop a sandbox container without deleting it.

(&self, sandbox_name: &str)

Source from the content-addressed store, hash-verified

613
614 /// Stop a sandbox container without deleting it.
615 pub async fn stop_sandbox(&self, sandbox_name: &str) -> Result<(), ComputeDriverError> {
616 let name = validated_container_name(sandbox_name)?;
617 info!(sandbox_name = %sandbox_name, container = %name, "Stopping sandbox container");
618
619 self.client
620 .stop_container(&name, self.config.stop_timeout_secs)
621 .await
622 .map_err(ComputeDriverError::from)
623 }
624
625 /// Delete a sandbox container and its workspace volume.
626 pub async fn delete_sandbox(

Callers

nothing calls this directly

Calls 2

validated_container_nameFunction · 0.85
stop_containerMethod · 0.80

Tested by

no test coverage detected