MCPcopy
hub / github.com/containerd/containerd / image

Function image

core/metadata/db_test.go:813–826  ·  view source on GitHub ↗
(n string, d digest.Digest, l ...string)

Source from the content-addressed store, hash-verified

811}
812
813func image(n string, d digest.Digest, l ...string) object {
814 return object{
815 data: testImage{
816 name: n,
817 target: ocispec.Descriptor{
818 MediaType: "irrelevant",
819 Digest: d,
820 Size: 256,
821 },
822 },
823 removed: false,
824 labels: labelmap(l...),
825 }
826}
827
828func newSnapshot(key, parent string, active, r bool, l ...string) object {
829 return object{

Callers 2

TestMetadataCollectorFunction · 0.70
benchmarkTriggerFunction · 0.70

Calls 1

labelmapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…