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

Method put_scoped

crates/openshell-server/src/persistence/mod.rs:265–275  ·  view source on GitHub ↗

Insert or update a generic named object with an application-owned scope.

(
        &self,
        object_type: &str,
        id: &str,
        name: &str,
        scope: &str,
        payload: &[u8],
        labels: Option<&str>,
    )

Source from the content-addressed store, hash-verified

263
264 /// Insert or update a generic named object with an application-owned scope.
265 pub async fn put_scoped(
266 &self,
267 object_type: &str,
268 id: &str,
269 name: &str,
270 scope: &str,
271 payload: &[u8],
272 labels: Option<&str>,
273 ) -> PersistenceResult<()> {
274 store_dispatch!(self.put_scoped(object_type, id, name, scope, payload, labels))
275 }
276
277 /// Fetch an object by id.
278 pub async fn get(

Callers 1

put_scoped_messageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected