Construct and validate a container name from a sandbox name. Combines the prefix with the sandbox name and validates the result against Podman's naming rules before any resources are created.
(sandbox_name: &str)
| 67 | /// Combines the prefix with the sandbox name and validates the result |
| 68 | /// against Podman's naming rules before any resources are created. |
| 69 | fn validated_container_name(sandbox_name: &str) -> Result<String, ComputeDriverError> { |
| 70 | let name = container::container_name(sandbox_name); |
| 71 | crate::client::validate_name(&name) |
| 72 | .map_err(|e| ComputeDriverError::Precondition(e.to_string()))?; |
| 73 | Ok(name) |
| 74 | } |
| 75 | |
| 76 | fn podman_volume_is_bind_backed(volume: &VolumeInspect) -> bool { |
| 77 | (volume.driver.is_empty() || volume.driver == "local") |
no test coverage detected