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

Class BinaryIdentityCache

crates/openshell-supervisor-network/src/identity.rs:77–80  ·  view source on GitHub ↗

Thread-safe cache of binary SHA256 hashes for TOFU enforcement.

Source from the content-addressed store, hash-verified

75
76/// Thread-safe cache of binary SHA256 hashes for TOFU enforcement.
77pub struct BinaryIdentityCache {
78 #[cfg_attr(not(target_os = "linux"), allow(dead_code))]
79 hashes: Mutex<HashMap<PathBuf, CachedBinary>>,
80}
81
82impl Default for BinaryIdentityCache {
83 fn default() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected