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

Method list_with_selector

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

List objects by type with label selector filtering. Label selector format: "key1=value1,key2=value2" (comma-separated equality matches).

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

Source from the content-addressed store, hash-verified

326 /// List objects by type with label selector filtering.
327 /// Label selector format: "key1=value1,key2=value2" (comma-separated equality matches).
328 pub async fn list_with_selector(
329 &self,
330 object_type: &str,
331 label_selector: &str,
332 limit: u32,
333 offset: u32,
334 ) -> PersistenceResult<Vec<ObjectRecord>> {
335 store_dispatch!(self.list_with_selector(object_type, label_selector, limit, offset))
336 }
337
338 // -----------------------------------------------------------------------
339 // Generic protobuf message helpers

Calls

no outgoing calls