summaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/processimage.go
blob: fadb1b92c5c6c9eb2ac55e852dda02bc1ab858df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package hcsshim

import "os"

// ProcessBaseLayer post-processes a base layer that has had its files extracted.
// The files should have been extracted to <path>\Files.
func ProcessBaseLayer(path string) error {
	err := processBaseImage(path)
	if err != nil {
		return &os.PathError{Op: "ProcessBaseLayer", Path: path, Err: err}
	}
	return nil
}

// ProcessUtilityVMImage post-processes a utility VM image that has had its files extracted.
// The files should have been extracted to <path>\Files.
func ProcessUtilityVMImage(path string) error {
	err := processUtilityImage(path)
	if err != nil {
		return &os.PathError{Op: "ProcessUtilityVMImage", Path: path, Err: err}
	}
	return nil
}