processimage.go 687 B

123456789101112131415161718192021222324
  1. package wclayer
  2. import "os"
  3. // ProcessBaseLayer post-processes a base layer that has had its files extracted.
  4. // The files should have been extracted to <path>\Files.
  5. func ProcessBaseLayer(path string) error {
  6. err := processBaseImage(path)
  7. if err != nil {
  8. return &os.PathError{Op: "ProcessBaseLayer", Path: path, Err: err}
  9. }
  10. return nil
  11. }
  12. // ProcessUtilityVMImage post-processes a utility VM image that has had its files extracted.
  13. // The files should have been extracted to <path>\Files.
  14. func ProcessUtilityVMImage(path string) error {
  15. err := processUtilityImage(path)
  16. if err != nil {
  17. return &os.PathError{Op: "ProcessUtilityVMImage", Path: path, Err: err}
  18. }
  19. return nil
  20. }