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

Method all_endpoints

crates/openshell-prover/src/policy.rs:297–305  ·  view source on GitHub ↗

All (`policy_name`, endpoint) pairs.

(&self)

Source from the content-addressed store, hash-verified

295impl PolicyModel {
296 /// All (`policy_name`, endpoint) pairs.
297 pub fn all_endpoints(&self) -> Vec<(&str, &Endpoint)> {
298 let mut result = Vec::new();
299 for (name, rule) in &self.network_policies {
300 for ep in &rule.endpoints {
301 result.push((name.as_str(), ep));
302 }
303 }
304 result
305 }
306
307 /// Deduplicated list of all binary paths across all policies.
308 pub fn all_binaries(&self) -> Vec<&Binary> {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected