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

Method from_str

crates/openshell-driver-kubernetes/src/config.rs:44–52  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

42 type Err = String;
43
44 fn from_str(s: &str) -> Result<Self, Self::Err> {
45 match s {
46 "image-volume" => Ok(Self::ImageVolume),
47 "init-container" => Ok(Self::InitContainer),
48 other => Err(format!(
49 "unknown supervisor sideload method '{other}'; expected 'image-volume' or 'init-container'"
50 )),
51 }
52 }
53}
54
55/// How the supervisor is arranged inside Kubernetes sandbox pods.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected