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

Method DeleteNode

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

Source from the content-addressed store, hash-verified

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...)
227 if e == nil && !nodes.IsFlatStorage(ctx, "in") {
228 s.cacheDel(ctx, in.GetNode())
229 time.Sleep(250 * time.Millisecond)
230 }
231 return r, e
232}
233
234func (s *CacheHandler) UpdateNode(ctx context.Context, in *tree.UpdateNodeRequest, opts ...grpc.CallOption) (*tree.UpdateNodeResponse, error) {
235 if nodes.IsFlatStorage(ctx, "from") && nodes.IsFlatStorage(ctx, "to") {

Callers

nothing calls this directly

Calls 4

cacheDelMethod · 0.95
IsFlatStorageFunction · 0.92
DeleteNodeMethod · 0.65
GetNodeMethod · 0.65

Tested by

no test coverage detected