storageToImage transforms a storage.Image to an Image.
(storageImage *storage.Image, ref types.ImageReference)
| 141 | |
| 142 | // storageToImage transforms a storage.Image to an Image. |
| 143 | func (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. |
no outgoing calls
no test coverage detected