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:
parent
31296cc3f7
commit
c8db980add
1 changed files with 8 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue