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

Method index_binaries

crates/openshell-prover/src/model.rs:112–121  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

110 }
111
112 fn index_binaries(&mut self) {
113 let mut seen = HashSet::new();
114 for rule in self.policy.network_policies.values() {
115 for b in &rule.binaries {
116 if seen.insert(b.path.clone()) {
117 self.binary_paths.push(b.path.clone());
118 }
119 }
120 }
121 }
122
123 fn encode_policy_allows(&mut self) {
124 for (policy_name, rule) in &self.policy.network_policies {

Callers 1

buildMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected