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

Function put

nodedb/src/control/catalog_entry/apply/function.rs:11–27  ·  view source on GitHub ↗
(stored: &StoredFunction, catalog: &SystemCatalog)

Source from the content-addressed store, hash-verified

9use crate::control::security::catalog::function_types::StoredFunction;
10
11pub fn put(stored: &StoredFunction, catalog: &SystemCatalog) {
12 if let Err(e) = catalog.put_function(stored) {
13 warn!(
14 function = %stored.name,
15 tenant = stored.tenant_id,
16 error = %e,
17 "catalog_entry: put_function failed"
18 );
19 }
20 super::owner::put_parent_owner(
21 object_type::FUNCTION,
22 stored.tenant_id,
23 &stored.name,
24 &stored.owner,
25 catalog,
26 );
27}
28
29pub fn delete(tenant_id: u64, name: &str, catalog: &SystemCatalog) {
30 if let Err(e) = catalog.delete_function(tenant_id, name) {

Callers

nothing calls this directly

Calls 2

put_parent_ownerFunction · 0.85
put_functionMethod · 0.80

Tested by

no test coverage detected