MCPcopy Create free account
hub / github.com/pydio/cells / CreateNode

Method CreateNode

common/nodes/sync/handler-sync-cache.go:214–223  ·  view source on GitHub ↗
(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

212}
213
214func (s *CacheHandler) CreateNode(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption) (*tree.CreateNodeResponse, error) {
215 r, e := s.Next.CreateNode(ctx, in, opts...)
216 if nodes.IsFlatStorage(ctx, "in") {
217 return r, e
218 }
219 if e == nil {
220 s.cacheAdd(ctx, r.GetNode())
221 }
222 return r, e
223}
224
225func (s *CacheHandler) DeleteNode(ctx context.Context, in *tree.DeleteNodeRequest, opts ...grpc.CallOption) (*tree.DeleteNodeResponse, error) {
226 r, e := s.Next.DeleteNode(ctx, in, opts...)

Callers

nothing calls this directly

Calls 4

cacheAddMethod · 0.95
IsFlatStorageFunction · 0.92
CreateNodeMethod · 0.65
GetNodeMethod · 0.65

Tested by

no test coverage detected