1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Image.Changes(): list all changes between an image and a rw directory

This commit is contained in:
Solomon Hykes 2013-03-20 22:12:38 -07:00
parent 31296cc3f7
commit c8db980add

View file

@ -149,6 +149,14 @@ func (image *Image) Mount(root, rw string) error {
return nil
}
func (image *Image) Changes(rw string) ([]Change, error) {
layers, err := image.layers()
if err != nil {
return nil, err
}
return Changes(layers, rw)
}
func ValidateId(id string) error {
if id == "" {
return fmt.Errorf("Image id can't be empty")