(path: &std::path::Path, bytes: &[u8])
| 3079 | } |
| 3080 | |
| 3081 | fn write_all(path: &std::path::Path, bytes: &[u8]) -> Result<(), Status> { |
| 3082 | if let Some(parent) = path.parent() { |
| 3083 | std::fs::create_dir_all(parent) |
| 3084 | .map_err(|e| domain_status(ErrorCode::Internal, format!("sidecar dir: {e}")))?; |
| 3085 | } |
| 3086 | std::fs::write(path, bytes) |
| 3087 | .map_err(|e| domain_status(ErrorCode::Internal, format!("sidecar write: {e}"))) |
| 3088 | } |
| 3089 | |
| 3090 | #[tonic::async_trait] |
| 3091 | impl attestation_service_server::AttestationService for AttestationImpl { |
no test coverage detected