MCPcopy
hub / github.com/containerd/containerd / active

Method active

core/metadata/gc.go:422–432  ·  view source on GitHub ↗
(namespace string, fn func(gc.Node), bref func(gc.Node, gc.Node))

Source from the content-addressed store, hash-verified

420}
421
422func (c *gcContext) active(namespace string, fn func(gc.Node), bref func(gc.Node, gc.Node)) {
423 for _, gctx := range c.contexts {
424 if cc, ok := gctx.(collectionWithBackRefs); ok {
425 // If the context supports back references, use it
426 cc.ActiveWithBackRefs(namespace, fn, bref)
427 } else {
428 // Check if supports back references, if so, add
429 gctx.Active(namespace, fn)
430 }
431 }
432}
433
434func (c *gcContext) leased(namespace, lease string, fn func(gc.Node)) {
435 for _, gctx := range c.contexts {

Callers 1

scanRootsMethod · 0.95

Calls 2

ActiveWithBackRefsMethod · 0.65
ActiveMethod · 0.65

Tested by

no test coverage detected