(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error)
| 223 | } |
| 224 | |
| 225 | func (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 | |
| 229 | func (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)) |
no test coverage detected