mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
effa24bf48
Signed-off-by: Tibor Vass <tibor@docker.com>
13 lines
252 B
Go
13 lines
252 B
Go
package wclayer
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/Microsoft/hcsshim/internal/guid"
|
|
)
|
|
|
|
// LayerID returns the layer ID of a layer on disk.
|
|
func LayerID(path string) (guid.GUID, error) {
|
|
_, file := filepath.Split(path)
|
|
return NameToGuid(file)
|
|
}
|