Skip to content

Commit

Permalink
Replace usage of pkg/nat with go-connections/nat.
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <[email protected]>
  • Loading branch information
calavera committed Dec 22, 2015
1 parent 0aab83d commit 056e744
Show file tree
Hide file tree
Showing 26 changed files with 22 additions and 957 deletions.
2 changes: 1 addition & 1 deletion api/client/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

Cli "github.com/docker/docker/cli"
flag "github.com/docker/docker/pkg/mflag"
"github.com/docker/docker/pkg/nat"
"github.com/docker/go-connections/nat"
)

// CmdPort lists port mappings for a container.
Expand Down
2 changes: 1 addition & 1 deletion api/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/version"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
)

// ContainerCreateResponse contains the information returned to a client on the
Expand Down
2 changes: 1 addition & 1 deletion api/types/versions/v1p19/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package v1p19
import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/versions/v1p20"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
)

// ContainerJSON is a backcompatibility struct for APIs prior to 1.20.
Expand Down
2 changes: 1 addition & 1 deletion api/types/versions/v1p20/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package v1p20

import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
)

// ContainerJSON is a backcompatibility struct for the API 1.20
Expand Down
2 changes: 1 addition & 1 deletion builder/dockerfile/dispatchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"github.com/docker/docker/builder"
derr "github.com/docker/docker/errors"
flag "github.com/docker/docker/pkg/mflag"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/signal"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
derr "github.com/docker/docker/errors"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/promise"
"github.com/docker/docker/pkg/signal"
"github.com/docker/docker/pkg/symlink"
"github.com/docker/docker/runconfig"
"github.com/docker/docker/volume"
"github.com/docker/go-connections/nat"
"github.com/opencontainers/runc/libcontainer/label"
)

Expand Down
2 changes: 1 addition & 1 deletion container/container_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import (
"github.com/docker/docker/daemon/execdriver"
derr "github.com/docker/docker/errors"
"github.com/docker/docker/pkg/chrootarchive"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/symlink"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/utils"
"github.com/docker/docker/volume"
"github.com/docker/go-connections/nat"
"github.com/docker/libnetwork"
"github.com/docker/libnetwork/netlabel"
"github.com/docker/libnetwork/options"
Expand Down
2 changes: 1 addition & 1 deletion daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import (
"github.com/docker/docker/pkg/jsonmessage"
"github.com/docker/docker/pkg/mount"
"github.com/docker/docker/pkg/namesgenerator"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/signal"
"github.com/docker/docker/pkg/streamformatter"
Expand All @@ -64,6 +63,7 @@ import (
volumedrivers "github.com/docker/docker/volume/drivers"
"github.com/docker/docker/volume/local"
"github.com/docker/docker/volume/store"
"github.com/docker/go-connections/nat"
"github.com/docker/libnetwork"
lntypes "github.com/docker/libnetwork/types"
"github.com/docker/libtrust"
Expand Down
2 changes: 1 addition & 1 deletion daemon/execdriver/driver_windows.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package execdriver

import (
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
)

// Mount contains information for a mount operation.
Expand Down
2 changes: 1 addition & 1 deletion daemon/links/links.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path"
"strings"

"github.com/docker/docker/pkg/nat"
"github.com/docker/go-connections/nat"
)

// Link struct holds informations about parent/child linked container
Expand Down
2 changes: 1 addition & 1 deletion daemon/links/links_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/docker/docker/pkg/nat"
"github.com/docker/go-connections/nat"
)

// Just to make life easier
Expand Down
2 changes: 1 addition & 1 deletion daemon/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/docker/docker/container"
"github.com/docker/docker/image"
"github.com/docker/docker/pkg/graphdb"
"github.com/docker/docker/pkg/nat"
"github.com/docker/go-connections/nat"
)

// iterationAction represents possible outcomes happening during the container iteration.
Expand Down
2 changes: 1 addition & 1 deletion daemon/network/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package network

import (
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/pkg/nat"
"github.com/docker/go-connections/nat"
)

// Settings stores configuration details about the daemon network config
Expand Down
2 changes: 1 addition & 1 deletion integration-cli/docker_cli_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"io/ioutil"

"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/go-connections/nat"
"github.com/go-check/check"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-cli/docker_cli_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/docker/pkg/mount"
"github.com/docker/docker/pkg/nat"
"github.com/docker/docker/runconfig"
"github.com/docker/go-connections/nat"
"github.com/docker/libnetwork/resolvconf"
"github.com/go-check/check"
)
Expand Down
227 changes: 0 additions & 227 deletions pkg/nat/nat.go

This file was deleted.

Loading

0 comments on commit 056e744

Please sign in to comment.