MCPcopy Create free account
hub / github.com/containers/common / storageToImage

Method storageToImage

libimage/runtime.go:143–149  ·  view source on GitHub ↗

storageToImage transforms a storage.Image to an Image.

(storageImage *storage.Image, ref types.ImageReference)

Source from the content-addressed store, hash-verified

141
142// storageToImage transforms a storage.Image to an Image.
143func (r *Runtime) storageToImage(storageImage *storage.Image, ref types.ImageReference) *Image {
144 return &Image{
145 runtime: r,
146 storageImage: storageImage,
147 storageReference: ref,
148 }
149}
150
151// Exists returns true if the specicifed image exists in the local containers
152// storage. Note that it may return false if an image corrupted.

Callers 3

LookupImageMethod · 0.95
ListImagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected