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

Method list_by_scope

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

List objects by type and application-owned scope.

(
        &self,
        object_type: &str,
        scope: &str,
        limit: u32,
        offset: u32,
    )

Source from the content-addressed store, hash-verified

314
315 /// List objects by type and application-owned scope.
316 pub async fn list_by_scope(
317 &self,
318 object_type: &str,
319 scope: &str,
320 limit: u32,
321 offset: u32,
322 ) -> PersistenceResult<Vec<ObjectRecord>> {
323 store_dispatch!(self.list_by_scope(object_type, scope, limit, offset))
324 }
325
326 /// List objects by type with label selector filtering.
327 /// Label selector format: "key1=value1,key2=value2" (comma-separated equality matches).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected