MCPcopy
hub / github.com/containerd/containerd / NewInMemoryTracker

Function NewInMemoryTracker

core/remotes/docker/status.go:72–77  ·  view source on GitHub ↗

NewInMemoryTracker returns a StatusTracker that tracks content status in-memory

()

Source from the content-addressed store, hash-verified

70
71// NewInMemoryTracker returns a StatusTracker that tracks content status in-memory
72func NewInMemoryTracker() StatusTrackLocker {
73 return &memoryStatusTracker{
74 statuses: map[string]Status{},
75 locker: locker.New(),
76 }
77}
78
79func (t *memoryStatusTracker) GetStatus(ref string) (Status, error) {
80 t.m.Lock()

Callers 3

resolver.goFile · 0.92
samplePusherFunction · 0.85
NewResolverFunction · 0.85

Calls

no outgoing calls

Tested by 1

samplePusherFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…