Function
endpoint_layer_label
(endpoint: &NetworkEndpoint)
Source from the content-addressed store, hash-verified
| 586 | } |
| 587 | |
| 588 | fn 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 | |
| 598 | fn format_allow_rule(allow: &L7Allow) -> String { |
| 599 | let mut parts = Vec::new(); |
Callers
nothing calls this directly
Tested by
no test coverage detected