move code supporting push, pull, and inspect to libkpod and libkpod/image
Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
2c1fd1ad3f
commit
14864f820e
16 changed files with 319 additions and 269 deletions
|
@ -44,7 +44,7 @@ func Size(store storage.Store, img storage.Image) (int64, error) {
|
|||
return imgSize, nil
|
||||
}
|
||||
|
||||
// TopLayer returns the ID of the top layer of the image
|
||||
// GetTopLayerID returns the ID of the top layer of the image
|
||||
func GetTopLayerID(img storage.Image) (string, error) {
|
||||
metadata, err := ParseMetadata(img)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue