1package wclayer 2 3import ( 4 "github.com/Microsoft/hcsshim/internal/hcserror" 5 "github.com/Microsoft/hcsshim/internal/interop" 6 "github.com/sirupsen/logrus" 7) 8 9// GetSharedBaseImages will enumerate the images stored in the common central 10// image store and return descriptive info about those images for the purpose 11// of registering them with the graphdriver, graph, and tagstore. 12func GetSharedBaseImages() (imageData string, err error) { 13 title := "hcsshim::GetSharedBaseImages " 14 15 logrus.Debugf("Calling proc") 16 var buffer *uint16 17 err = getBaseImages(&buffer) 18 if err != nil { 19 err = hcserror.New(err, title, "") 20 logrus.Error(err) 21 return 22 } 23 imageData = interop.ConvertAndFreeCoTaskMemString(buffer) 24 logrus.Debugf(title+" - succeeded output=%s", imageData) 25 return 26} 27