MCPcopy
hub / github.com/containerd/containerd / imageFromProto

Function imageFromProto

client/image_store.go:131–139  ·  view source on GitHub ↗
(imagepb *imagesapi.Image)

Source from the content-addressed store, hash-verified

129}
130
131func imageFromProto(imagepb *imagesapi.Image) images.Image {
132 return images.Image{
133 Name: imagepb.Name,
134 Labels: imagepb.Labels,
135 Target: oci.DescriptorFromProto(imagepb.Target),
136 CreatedAt: protobuf.FromTimestamp(imagepb.CreatedAt),
137 UpdatedAt: protobuf.FromTimestamp(imagepb.UpdatedAt),
138 }
139}
140
141func imagesFromProto(imagespb []*imagesapi.Image) []images.Image {
142 var images []images.Image

Callers 4

GetMethod · 0.70
CreateMethod · 0.70
UpdateMethod · 0.70
imagesFromProtoFunction · 0.70

Calls 2

DescriptorFromProtoFunction · 0.92
FromTimestampFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…