MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / app_compose_hash

Method app_compose_hash

vmm/src/app/qemu.rs:1044–1049  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1042 }
1043
1044 pub fn app_compose_hash(&self) -> Result<[u8; 32]> {
1045 use sha2::Digest;
1046 let compose_path = self.app_compose_path();
1047 let compose = fs::read(compose_path).context("Failed to read compose")?;
1048 Ok(sha2::Sha256::new_with_prefix(&compose).finalize().into())
1049 }
1050
1051 pub fn user_config_path(&self) -> PathBuf {
1052 self.shared_dir().join(USER_CONFIG)

Callers 1

configure_machineMethod · 0.80

Calls 1

app_compose_pathMethod · 0.80

Tested by

no test coverage detected