MCPcopy
hub / github.com/containerd/containerd / createBuckets

Function createBuckets

core/metadata/gc_test.go:978–987  ·  view source on GitHub ↗
(bkt *bolt.Bucket, names ...string)

Source from the content-addressed store, hash-verified

976}
977
978func createBuckets(bkt *bolt.Bucket, names ...string) (*bolt.Bucket, error) {
979 for _, name := range names {
980 nbkt, err := bkt.CreateBucketIfNotExists([]byte(name))
981 if err != nil {
982 return nil, err
983 }
984 bkt = nbkt
985 }
986 return bkt, nil
987}
988
989func labelmap(kv ...string) map[string]string {
990 if len(kv)%2 != 0 {

Callers 11

addImageFunction · 0.85
addSnapshotFunction · 0.85
addContentFunction · 0.85
addIngestFunction · 0.85
addLeaseFunction · 0.85
addLeaseSnapshotFunction · 0.85
addLeaseContentFunction · 0.85
addLeaseImageFunction · 0.85
addLeaseIngestFunction · 0.85
addContainerFunction · 0.85
addSandboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…