MCPcopy Create free account
hub / github.com/containerd/containerd / createSnapshotterBucket

Function createSnapshotterBucket

core/metadata/buckets.go:253–259  ·  view source on GitHub ↗
(tx *bolt.Tx, namespace, snapshotter string)

Source from the content-addressed store, hash-verified

251}
252
253func createSnapshotterBucket(tx *bolt.Tx, namespace, snapshotter string) (*bolt.Bucket, error) {
254 bkt, err := createBucketIfNotExists(tx, bucketKeyVersion, []byte(namespace), bucketKeyObjectSnapshots, []byte(snapshotter))
255 if err != nil {
256 return nil, err
257 }
258 return bkt, nil
259}
260
261func getSnapshottersBucket(tx *bolt.Tx, namespace string) *bolt.Bucket {
262 return getBucket(tx, bucketKeyVersion, []byte(namespace), bucketKeyObjectSnapshots)

Callers 3

TestCreateDeleteFunction · 0.85
TestMigrationsFunction · 0.85
createSnapshotMethod · 0.85

Calls 1

createBucketIfNotExistsFunction · 0.70

Tested by 2

TestCreateDeleteFunction · 0.68
TestMigrationsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…