MCPcopy
hub / github.com/containerd/containerd / NewNamespaceStore

Function NewNamespaceStore

core/metadata/namespaces.go:37–39  ·  view source on GitHub ↗

NewNamespaceStore returns a store backed by a bolt DB

(tx *bolt.Tx)

Source from the content-addressed store, hash-verified

35
36// NewNamespaceStore returns a store backed by a bolt DB
37func NewNamespaceStore(tx *bolt.Tx) namespaces.Store {
38 return &namespaceStore{tx: tx}
39}
40
41func (s *namespaceStore) Create(ctx context.Context, namespace string, labels map[string]string) error {
42 topbkt, err := createBucketIfNotExists(s.tx, bucketKeyVersion)

Callers 3

withStoreMethod · 0.92
TestCreateDeleteFunction · 0.85
createContentStoreFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCreateDeleteFunction · 0.68
createContentStoreFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…