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

Method withStore

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

Source from the content-addressed store, hash-verified

223}
224
225func (l *local) withStore(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error) func(tx *bolt.Tx) error {
226 return func(tx *bolt.Tx) error { return fn(ctx, metadata.NewNamespaceStore(tx)) }
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))

Callers 2

withStoreViewMethod · 0.95
withStoreUpdateMethod · 0.95

Calls 1

NewNamespaceStoreFunction · 0.92

Tested by

no test coverage detected