(raw: &str)
| 178 | |
| 179 | #[must_use] |
| 180 | pub fn from_raw(raw: &str) -> Self { |
| 181 | match raw.trim().to_ascii_lowercase().as_str() { |
| 182 | "docker" => Self::Docker, |
| 183 | "k8s" | "kubernetes" => Self::Kubernetes, |
| 184 | "podman" => Self::Podman, |
| 185 | "vm" => Self::Vm, |
| 186 | _ => Self::Unknown, |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | #[must_use] |
| 191 | pub const fn from_driver_kind(driver_kind: Option<crate::ComputeDriverKind>) -> Self { |