mirror of
https://github.com/docker/cli.git
synced 2026-09-24 07:25:07 -05:00
Implement fallback operation for driver.Diff()
This moves the Diff() operation to a separate Differ interface and implements a fallback that uses the Changes() results to encode a diff tar. Upstream-commit: e82f8c1661f3fa18e4dc6ca3aebe4dcc46e8961b Component: engine
This commit is contained in:
@@ -2,7 +2,6 @@ package devmapper
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/dotcloud/docker/archive"
|
||||
"github.com/dotcloud/docker/graphdriver"
|
||||
"os"
|
||||
"path"
|
||||
@@ -57,10 +56,6 @@ func (d *Driver) Get(id string) (string, error) {
|
||||
return mp, nil
|
||||
}
|
||||
|
||||
func (d *Driver) Diff(id string) (archive.Archive, error) {
|
||||
return nil, fmt.Errorf("Not implemented")
|
||||
}
|
||||
|
||||
func (d *Driver) DiffSize(id string) (int64, error) {
|
||||
return -1, fmt.Errorf("Not implemented")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user