Skip to content

Commit

Permalink
Move engine-api to docker/docker/api
Browse files Browse the repository at this point in the history
Remove all dependencies to engine-api and start using docker/docker/api.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
  • Loading branch information
mrjana committed Sep 7, 2016
1 parent 68ed10f commit ad10ae9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion libnetwork/cluster/provider.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cluster

import (
"github.com/docker/engine-api/types/network"
"github.com/docker/docker/api/types/network"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion libnetwork/cmd/dnet/dnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/docker/docker/pkg/reexec"

"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/pkg/term"
"github.com/docker/engine-api/types/network"
"github.com/docker/libnetwork"
"github.com/docker/libnetwork/api"
"github.com/docker/libnetwork/config"
Expand Down
2 changes: 1 addition & 1 deletion libnetwork/cmd/dnet/dnet_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func setupDumpStackTrap() {
signal.Notify(c, syscall.SIGUSR1)
go func() {
for range c {
psignal.DumpStacks()
psignal.DumpStacks("")
}
}()
}
2 changes: 1 addition & 1 deletion libnetwork/cmd/dnet/dnet_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func setupDumpStackTrap() {
logrus.Debugf("Stackdump - waiting signal at %s", ev)
for {
syscall.WaitForSingleObject(h, syscall.INFINITE)
signal.DumpStacks()
signal.DumpStacks("")
}
}
}()
Expand Down
14 changes: 7 additions & 7 deletions libnetwork/drivers/remote/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func TestGetEmptyCapabilities(t *testing.T) {
t.Fatal(err)
}

d := newDriver(plugin, p.Client)
d := newDriver(plugin, p.Client())
if d.Type() != plugin {
t.Fatal("Driver type does not match that given")
}
Expand Down Expand Up @@ -247,7 +247,7 @@ func TestGetExtraCapabilities(t *testing.T) {
t.Fatal(err)
}

d := newDriver(plugin, p.Client)
d := newDriver(plugin, p.Client())
if d.Type() != plugin {
t.Fatal("Driver type does not match that given")
}
Expand Down Expand Up @@ -277,7 +277,7 @@ func TestGetInvalidCapabilities(t *testing.T) {
t.Fatal(err)
}

d := newDriver(plugin, p.Client)
d := newDriver(plugin, p.Client())
if d.Type() != plugin {
t.Fatal("Driver type does not match that given")
}
Expand Down Expand Up @@ -391,7 +391,7 @@ func TestRemoteDriver(t *testing.T) {
t.Fatal(err)
}

d := newDriver(plugin, p.Client)
d := newDriver(plugin, p.Client())
if d.Type() != plugin {
t.Fatal("Driver type does not match that given")
}
Expand Down Expand Up @@ -469,7 +469,7 @@ func TestDriverError(t *testing.T) {
t.Fatal(err)
}

driver := newDriver(plugin, p.Client)
driver := newDriver(plugin, p.Client())

if err := driver.CreateEndpoint("dummy", "dummy", &testEndpoint{t: t}, map[string]interface{}{}); err == nil {
t.Fatalf("Expected error from driver")
Expand Down Expand Up @@ -501,7 +501,7 @@ func TestMissingValues(t *testing.T) {
if err != nil {
t.Fatal(err)
}
driver := newDriver(plugin, p.Client)
driver := newDriver(plugin, p.Client())

if err := driver.CreateEndpoint("dummy", "dummy", ep, map[string]interface{}{}); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -562,7 +562,7 @@ func TestRollback(t *testing.T) {
if err != nil {
t.Fatal(err)
}
driver := newDriver(plugin, p.Client)
driver := newDriver(plugin, p.Client())

ep := &rollbackEndpoint{}

Expand Down
8 changes: 4 additions & 4 deletions libnetwork/ipams/remote/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestGetCapabilities(t *testing.T) {
t.Fatal(err)
}

d := newAllocator(plugin, p.Client)
d := newAllocator(plugin, p.Client())

caps, err := d.(*allocator).getCapabilities()
if err != nil {
Expand All @@ -102,7 +102,7 @@ func TestGetCapabilitiesFromLegacyDriver(t *testing.T) {
t.Fatal(err)
}

d := newAllocator(plugin, p.Client)
d := newAllocator(plugin, p.Client())

if _, err := d.(*allocator).getCapabilities(); err == nil {
t.Fatalf("Expected error, but got Success %v", err)
Expand All @@ -127,7 +127,7 @@ func TestGetDefaultAddressSpaces(t *testing.T) {
t.Fatal(err)
}

d := newAllocator(plugin, p.Client)
d := newAllocator(plugin, p.Client())

l, g, err := d.(*allocator).GetDefaultAddressSpaces()
if err != nil {
Expand Down Expand Up @@ -217,7 +217,7 @@ func TestRemoteDriver(t *testing.T) {
t.Fatal(err)
}

d := newAllocator(plugin, p.Client)
d := newAllocator(plugin, p.Client())

l, g, err := d.(*allocator).GetDefaultAddressSpaces()
if err != nil {
Expand Down

0 comments on commit ad10ae9

Please sign in to comment.