Remove Differ and Changer interfaces
Add the methods to the Driver interface to force the drivers to implement the methods Upstream-commit: 4d1a537433ede2bbc75b0a4817e8121f9e03fd86 Component: engine
This commit is contained in:
@@ -210,11 +210,7 @@ func (a *AufsDriver) Diff(id string) (archive.Archive, error) {
|
||||
|
||||
// Returns the size of the contents for the id
|
||||
func (a *AufsDriver) DiffSize(id string) (int64, error) {
|
||||
p, err := a.Get(id)
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
return utils.TreeSize(p)
|
||||
return utils.TreeSize(path.Join(a.rootPath(), "diff", id))
|
||||
}
|
||||
|
||||
func (a *AufsDriver) Changes(id string) ([]archive.Change, error) {
|
||||
|
||||
Reference in New Issue
Block a user