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

Function withNamespacesLabelsBucket

core/metadata/buckets.go:216–223  ·  view source on GitHub ↗
(tx *bolt.Tx, namespace string, fn func(bkt *bolt.Bucket) error)

Source from the content-addressed store, hash-verified

214}
215
216func withNamespacesLabelsBucket(tx *bolt.Tx, namespace string, fn func(bkt *bolt.Bucket) error) error {
217 bkt, err := createBucketIfNotExists(tx, namespaceLabelsBucketPath(namespace)...)
218 if err != nil {
219 return err
220 }
221
222 return fn(bkt)
223}
224
225func getNamespaceLabelsBucket(tx *bolt.Tx, namespace string) *bolt.Bucket {
226 return getBucket(tx, namespaceLabelsBucketPath(namespace)...)

Callers 1

SetLabelMethod · 0.85

Calls 2

createBucketIfNotExistsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…