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

Method get_draft_policy

crates/openshell-server/src/grpc/mod.rs:567–572  ·  view source on GitHub ↗
(
        &self,
        request: Request<GetDraftPolicyRequest>,
    )

Source from the content-addressed store, hash-verified

565
566 #[rpc_auth(auth = "dual", scope = "config:read", role = "user")]
567 async fn get_draft_policy(
568 &self,
569 request: Request<GetDraftPolicyRequest>,
570 ) -> Result<Response<GetDraftPolicyResponse>, Status> {
571 policy::handle_get_draft_policy(&self.state, request).await
572 }
573
574 #[rpc_auth(auth = "bearer", scope = "config:write", role = "admin")]
575 async fn approve_draft_chunk(

Callers 1

fetch_chunkFunction · 0.45

Calls 1

handle_get_draft_policyFunction · 0.85

Tested by

no test coverage detected