MCPcopy Index your code
hub / github.com/containerd/containerd / withStoreView

Method withStoreView

plugins/services/namespaces/local.go:229–231  ·  view source on GitHub ↗
(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error)

Source from the content-addressed store, hash-verified

227}
228
229func (l *local) withStoreView(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error) error {
230 return l.db.View(l.withStore(ctx, fn))
231}
232
233func (l *local) withStoreUpdate(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error) error {
234 return l.db.Update(l.withStore(ctx, fn))

Callers 2

GetMethod · 0.95
ListMethod · 0.95

Calls 2

withStoreMethod · 0.95
ViewMethod · 0.65

Tested by

no test coverage detected