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

Method get_draft_version

crates/openshell-server/src/policy_store.rs:280–285  ·  view source on GitHub ↗
(&self, sandbox_id: &str)

Source from the content-addressed store, hash-verified

278 }
279
280 async fn get_draft_version(&self, sandbox_id: &str) -> PersistenceResult<i64> {
281 match self {
282 Self::Postgres(store) => store.get_draft_version(sandbox_id).await,
283 Self::Sqlite(store) => store.get_draft_version(sandbox_id).await,
284 }
285 }
286}
287
288pub fn policy_payload_from_record(record: &PolicyRecord) -> PersistenceResult<Vec<u8>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected