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

Function l7_graphql_error_input

crates/openshell-supervisor-network/src/opa.rs:2197–2215  ·  view source on GitHub ↗
(host: &str, error: &str)

Source from the content-addressed store, hash-verified

2195 }
2196
2197 fn l7_graphql_error_input(host: &str, error: &str) -> serde_json::Value {
2198 serde_json::json!({
2199 "network": { "host": host, "port": 443 },
2200 "exec": {
2201 "path": "/usr/bin/curl",
2202 "ancestors": [],
2203 "cmdline_paths": []
2204 },
2205 "request": {
2206 "method": "POST",
2207 "path": "/graphql",
2208 "query_params": {},
2209 "graphql": {
2210 "operations": [],
2211 "error": error
2212 }
2213 }
2214 })
2215 }
2216
2217 fn l7_websocket_graphql_input(host: &str, operations: serde_json::Value) -> serde_json::Value {
2218 serde_json::json!({

Callers 1

Calls

no outgoing calls

Tested by 1