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

Function endpoint

crates/openshell-policy/src/merge.rs:928–935  ·  view source on GitHub ↗
(host: &str, port: u32)

Source from the content-addressed store, hash-verified

926 };
927
928 fn endpoint(host: &str, port: u32) -> NetworkEndpoint {
929 NetworkEndpoint {
930 host: host.to_string(),
931 port,
932 ports: vec![port],
933 ..Default::default()
934 }
935 }
936
937 fn rule_with_endpoint(name: &str, host: &str, port: u32) -> NetworkPolicyRule {
938 NetworkPolicyRule {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected