Adding changes to import prototype.

This commit is contained in:
Ladar Levison 2018-12-17 22:13:40 -06:00
parent 050f809a1c
commit 21fdbadf04
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ type Driver interface {
Export(id string, dst io.Writer) error
// Import imports a container from a tar file
Import(path, repo string) (string, error)
Import(path string, changes []string, repo string) (string, error)
// IPAddress returns the address of the container that can be used
// for external access.

View File

@ -101,7 +101,7 @@ func (d *MockDriver) Export(id string, dst io.Writer) error {
return d.ExportError
}
func (d *MockDriver) Import(path, repo string) (string, error) {
func (d *MockDriver) Import(path string, changes []string, repo string) (string, error) {
d.ImportCalled = true
d.ImportPath = path
d.ImportRepo = repo