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

Method from_sandbox

crates/openshell-driver-vm/src/driver.rs:96–106  ·  view source on GitHub ↗
(sandbox: &Sandbox)

Source from the content-addressed store, hash-verified

94
95impl VmSandboxDriverConfig {
96 fn from_sandbox(sandbox: &Sandbox) -> Result<Self, String> {
97 let Some(template) = sandbox
98 .spec
99 .as_ref()
100 .and_then(|spec| spec.template.as_ref())
101 else {
102 return Ok(Self::default());
103 };
104
105 Self::from_template(template)
106 }
107
108 fn from_template(template: &SandboxTemplate) -> Result<Self, String> {
109 let Some(config) = template.driver_config.as_ref() else {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected