(paths: &VmDriverTlsPaths)
| 4489 | } |
| 4490 | |
| 4491 | async fn read_guest_tls_materials(paths: &VmDriverTlsPaths) -> Result<GuestTlsMaterials, String> { |
| 4492 | let ca = tokio::fs::read(&paths.ca) |
| 4493 | .await |
| 4494 | .map_err(|err| format!("read {}: {err}", paths.ca.display()))?; |
| 4495 | let cert = tokio::fs::read(&paths.cert) |
| 4496 | .await |
| 4497 | .map_err(|err| format!("read {}: {err}", paths.cert.display()))?; |
| 4498 | let key = tokio::fs::read(&paths.key) |
| 4499 | .await |
| 4500 | .map_err(|err| format!("read {}: {err}", paths.key.display()))?; |
| 4501 | Ok(GuestTlsMaterials { ca, cert, key }) |
| 4502 | } |
| 4503 | |
| 4504 | async fn overlay_template_image_ready(path: &Path, size_bytes: u64) -> Result<bool, String> { |
| 4505 | match tokio::fs::metadata(path).await { |
no outgoing calls
no test coverage detected