Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/docker/docker/client (interfaces: APIClient)

package container
package dockerapi

import (
types "github.com/docker/docker/api/types"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"reflect"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"bufio"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"flag"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"bytes"
Expand Down Expand Up @@ -28,7 +28,7 @@ var tenSecond = 10 * time.Second
// UPDATE(stevvooe): Gomock is still broken garbage. Sigh. This time, had to
// generate, then manually "unvendor" imports. Further cements the
// realization that mocks are a garbage way to build tests.
//+go:generate mockgen -package container -destination api_client_test.mock.go github.com/docker/docker/client APIClient
//+go:generate mockgen -package dockerapi -destination api_client_test.mock.go github.com/docker/docker/client APIClient

func TestControllerPrepare(t *testing.T) {
task := genTask(t)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import "errors"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package container
package dockerapi

import (
"sort"
Expand Down
4 changes: 2 additions & 2 deletions cmd/swarmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/Sirupsen/logrus"
engineapi "github.com/docker/docker/client"
"github.com/docker/swarmkit/agent/exec/container"
"github.com/docker/swarmkit/agent/exec/dockerapi"
"github.com/docker/swarmkit/cli"
"github.com/docker/swarmkit/log"
"github.com/docker/swarmkit/manager/encryption"
Expand Down Expand Up @@ -151,7 +151,7 @@ var (
return err
}

executor := container.NewExecutor(client)
executor := dockerapi.NewExecutor(client)

if debugAddr != "" {
go func() {
Expand Down