getsharedbaseimages.go 661 B

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