(&mut self)
| 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 { |