MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / get

Method get

nodedb/src/control/security/ceiling.rs:58–61  ·  view source on GitHub ↗

Get the ceiling for a tenant (if defined).

(&self, tenant_id: u64)

Source from the content-addressed store, hash-verified

56
57 /// Get the ceiling for a tenant (if defined).
58 pub fn get(&self, tenant_id: u64) -> Option<TenantCeiling> {
59 let ceilings = self.ceilings.read().unwrap_or_else(|p| p.into_inner());
60 ceilings.get(&tenant_id).cloned()
61 }
62
63 /// Check if creating a new collection would exceed the ceiling.
64 pub fn check_collection_limit(&self, tenant_id: u64, current_count: u64) -> crate::Result<()> {

Callers 15

assignMethod · 0.45
assign_anonymousMethod · 0.45
check_storage_limitMethod · 0.45
is_audit_protectedMethod · 0.45
resolve_inheritanceMethod · 0.45
get_roleMethod · 0.45
check_inheritance_chainFunction · 0.45
quotaMethod · 0.45
checkMethod · 0.45
check_connectionMethod · 0.45
usageMethod · 0.45

Calls 1

readMethod · 0.45