(template: &DriverSandboxTemplate)
| 294 | |
| 295 | impl DockerSandboxDriverConfig { |
| 296 | fn from_template(template: &DriverSandboxTemplate) -> Result<Self, String> { |
| 297 | let Some(config) = template.driver_config.as_ref() else { |
| 298 | return Ok(Self::default()); |
| 299 | }; |
| 300 | |
| 301 | serde_json::from_value(struct_to_json_value(config)) |
| 302 | .map_err(|err| format!("invalid docker driver_config: {err}")) |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | use openshell_core::driver_mounts::SelinuxLabel; |
nothing calls this directly
no test coverage detected