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

Function endpoint_layer_label

crates/openshell-tui/src/ui/sandbox_draft.rs:588–596  ·  view source on GitHub ↗
(endpoint: &NetworkEndpoint)

Source from the content-addressed store, hash-verified

586}
587
588fn endpoint_layer_label(endpoint: &NetworkEndpoint) -> &str {
589 if endpoint.protocol.eq_ignore_ascii_case("rest") {
590 "L7 rest"
591 } else if endpoint.protocol.is_empty() {
592 "L4"
593 } else {
594 endpoint.protocol.as_str()
595 }
596}
597
598fn format_allow_rule(allow: &L7Allow) -> String {
599 let mut parts = Vec::new();

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected