move container-related functions out of kpod and into libkpod
Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
a68a981d0b
commit
2c1fd1ad3f
8 changed files with 65 additions and 54 deletions
|
@ -3,7 +3,6 @@ package image
|
|||
import (
|
||||
is "github.com/containers/image/storage"
|
||||
"github.com/containers/storage"
|
||||
"github.com/kubernetes-incubator/cri-o/libkpod/image"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
@ -46,8 +45,8 @@ func Size(store storage.Store, img storage.Image) (int64, error) {
|
|||
}
|
||||
|
||||
// TopLayer returns the ID of the top layer of the image
|
||||
func getTopLayerID(img storage.Image) (string, error) {
|
||||
metadata, err := image.ParseMetadata(img)
|
||||
func GetTopLayerID(img storage.Image) (string, error) {
|
||||
metadata, err := ParseMetadata(img)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue