MCPcopy
hub / github.com/containerd/containerd / labelmap

Function labelmap

core/metadata/gc_test.go:989–998  ·  view source on GitHub ↗
(kv ...string)

Source from the content-addressed store, hash-verified

987}
988
989func labelmap(kv ...string) map[string]string {
990 if len(kv)%2 != 0 {
991 panic("bad labels argument")
992 }
993 l := map[string]string{}
994 for i := 0; i < len(kv); i = i + 2 {
995 l[kv[i]] = kv[i+1]
996 }
997 return l
998}
999
1000func dgst(i int64) digest.Digest {
1001 r := rand.New(rand.NewSource(i))

Callers 9

TestGCRootsFunction · 0.85
TestGCRemoveFunction · 0.85
TestGCRefsFunction · 0.85
TestCollectibleResourcesFunction · 0.85
blobFunction · 0.85
imageFunction · 0.85
newSnapshotFunction · 0.85
containerFunction · 0.85
leaseFunction · 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…