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

Function imageToProto

client/image_store.go:121–129  ·  view source on GitHub ↗
(image *images.Image)

Source from the content-addressed store, hash-verified

119}
120
121func imageToProto(image *images.Image) *imagesapi.Image {
122 return &imagesapi.Image{
123 Name: image.Name,
124 Labels: image.Labels,
125 Target: oci.DescriptorToProto(image.Target),
126 CreatedAt: protobuf.ToTimestamp(image.CreatedAt),
127 UpdatedAt: protobuf.ToTimestamp(image.UpdatedAt),
128 }
129}
130
131func imageFromProto(imagepb *imagesapi.Image) images.Image {
132 return images.Image{

Callers 2

CreateMethod · 0.70
UpdateMethod · 0.70

Calls 2

DescriptorToProtoFunction · 0.92
ToTimestampFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…