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

Function category_label

crates/openshell-prover/src/report.rs:22–30  ·  view source on GitHub ↗
(query: &str)

Source from the content-addressed store, hash-verified

20// ---------------------------------------------------------------------------
21
22fn category_label(query: &str) -> &str {
23 match query {
24 category::LINK_LOCAL_REACH => "link-local reach",
25 category::L7_BYPASS_CREDENTIALED => "L7-bypass binary with credential",
26 category::CREDENTIAL_REACH_EXPANSION => "credentialed reach expansion",
27 category::CAPABILITY_EXPANSION => "capability expansion on credentialed host",
28 _ => "unknown finding",
29 }
30}
31
32// ---------------------------------------------------------------------------
33// One-line shorthand (used by the gateway's `validation_result`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected