MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / read_guest_tls_materials

Function read_guest_tls_materials

crates/openshell-driver-vm/src/driver.rs:4491–4502  ·  view source on GitHub ↗
(paths: &VmDriverTlsPaths)

Source from the content-addressed store, hash-verified

4489}
4490
4491async 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
4504async fn overlay_template_image_ready(path: &Path, size_bytes: u64) -> Result<bool, String> {
4505 match tokio::fs::metadata(path).await {

Calls

no outgoing calls

Tested by

no test coverage detected