move image-related functions out of cmd/kpod/common.go and into libkpod/image

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-07-21 16:49:50 -04:00
parent 95e17b4a73
commit a68a981d0b
5 changed files with 60 additions and 74 deletions

View file

@ -201,7 +201,7 @@ func outputImages(images []storage.Image, format string, store storage.Store, fi
if len(imageMetadata.Blobs) > 0 {
digest = string(imageMetadata.Blobs[0].Digest)
}
size, _ := getImageSize(img, store)
size, _ := image.Size(store, img)
names := []string{""}
if len(img.Names) > 0 {