(s: &str)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected