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

Method index_endpoints

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

Source from the content-addressed store, hash-verified

96 }
97
98 fn index_endpoints(&mut self) {
99 for (policy_name, rule) in &self.policy.network_policies {
100 for ep in &rule.endpoints {
101 for port in ep.effective_ports() {
102 self.endpoints.push(EndpointId {
103 policy_name: policy_name.clone(),
104 host: ep.host.clone(),
105 port,
106 });
107 }
108 }
109 }
110 }
111
112 fn index_binaries(&mut self) {
113 let mut seen = HashSet::new();

Callers 1

buildMethod · 0.80

Calls 2

effective_portsMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected