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

Method from_sandbox

crates/openshell-driver-podman/src/container.rs:78–88  ·  view source on GitHub ↗
(sandbox: &DriverSandbox)

Source from the content-addressed store, hash-verified

76
77impl PodmanSandboxDriverConfig {
78 pub fn from_sandbox(sandbox: &DriverSandbox) -> Result<Self, ComputeDriverError> {
79 let Some(template) = sandbox
80 .spec
81 .as_ref()
82 .and_then(|spec| spec.template.as_ref())
83 else {
84 return Ok(Self::default());
85 };
86
87 Self::from_template(template)
88 }
89
90 pub fn from_template(template: &DriverSandboxTemplate) -> Result<Self, ComputeDriverError> {
91 let Some(config) = template.driver_config.as_ref() else {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected