move configs structs to remove dependency on daemon

- Moved the following config structs to api/types
   - ContainerRmConfig
   - ContainerCommitConfig

Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
This commit is contained in:
Morgan Bauer
2015-12-04 12:34:43 -08:00
parent a56f258c8a
commit 63fb931a0b
11 changed files with 49 additions and 34 deletions

View File

@@ -5,6 +5,7 @@ import (
"os"
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/container"
"github.com/docker/docker/runconfig"
)
@@ -37,7 +38,7 @@ func TestContainerDoubleDelete(t *testing.T) {
// Try to remove the container when it's start is removalInProgress.
// It should ignore the container and not return an error.
if err := daemon.ContainerRm(container.ID, &ContainerRmConfig{ForceRemove: true}); err != nil {
if err := daemon.ContainerRm(container.ID, &types.ContainerRmConfig{ForceRemove: true}); err != nil {
t.Fatal(err)
}
}