MCPcopy
hub / github.com/containerd/containerd / NewImage

Function NewImage

client/image.go:118–124  ·  view source on GitHub ↗

NewImage returns a client image object from the metadata image

(client *Client, i images.Image)

Source from the content-addressed store, hash-verified

116
117// NewImage returns a client image object from the metadata image
118func NewImage(client *Client, i images.Image) Image {
119 return &image{
120 client: client,
121 i: i,
122 platform: client.platform,
123 }
124}
125
126// NewImageWithPlatform returns a client image object from the metadata image
127func NewImageWithPlatform(client *Client, i images.Image, platform platforms.MatchComparer) Image {

Callers 6

CheckpointMethod · 0.85
ImageMethod · 0.85
CheckpointMethod · 0.85
GetImageMethod · 0.85
ListImagesMethod · 0.85
testExportImportFunction · 0.85

Calls

no outgoing calls

Tested by 1

testExportImportFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…