2015-07-16 15:07:20 -04:00
|
|
|
package hcsshim
|
|
|
|
|
2017-07-26 18:03:47 -04:00
|
|
|
import "github.com/sirupsen/logrus"
|
2015-07-16 15:07:20 -04:00
|
|
|
|
2015-08-27 18:46:00 -04:00
|
|
|
// GetSharedBaseImages will enumerate the images stored in the common central
|
|
|
|
// image store and return descriptive info about those images for the purpose
|
|
|
|
// of registering them with the graphdriver, graph, and tagstore.
|
2015-07-16 15:07:20 -04:00
|
|
|
func GetSharedBaseImages() (imageData string, err error) {
|
|
|
|
title := "hcsshim::GetSharedBaseImages "
|
|
|
|
|
|
|
|
logrus.Debugf("Calling proc")
|
2016-02-01 18:09:35 -05:00
|
|
|
var buffer *uint16
|
|
|
|
err = getBaseImages(&buffer)
|
|
|
|
if err != nil {
|
|
|
|
err = makeError(err, title, "")
|
2015-07-16 15:07:20 -04:00
|
|
|
logrus.Error(err)
|
|
|
|
return
|
|
|
|
}
|
2016-02-01 18:09:35 -05:00
|
|
|
imageData = convertAndFreeCoTaskMemString(buffer)
|
2015-07-16 15:07:20 -04:00
|
|
|
logrus.Debugf(title+" - succeeded output=%s", imageData)
|
|
|
|
return
|
|
|
|
}
|