瀏覽代碼

Merge pull request #3328 from shykes/pkg-iptables

Move utility package 'iptables' to pkg/iptables
Michael Crosby 11 年之前
父節點
當前提交
2c395ce8fb
共有 6 個文件被更改,包括 5 次插入4 次删除
  1. 1 1
      integration/iptables_test.go
  2. 1 1
      links.go
  3. 1 1
      network.go
  4. 2 1
      network_test.go
  5. 0 0
      pkg/iptables/MAINTAINERS
  6. 0 0
      pkg/iptables/iptables.go

+ 1 - 1
integration/iptables_test.go

@@ -1,7 +1,7 @@
 package docker
 
 import (
-	"github.com/dotcloud/docker/iptables"
+	"github.com/dotcloud/docker/pkg/iptables"
 	"os"
 	"testing"
 )

+ 1 - 1
links.go

@@ -2,7 +2,7 @@ package docker
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/iptables"
+	"github.com/dotcloud/docker/pkg/iptables"
 	"path"
 	"strings"
 )

+ 1 - 1
network.go

@@ -4,7 +4,7 @@ import (
 	"encoding/binary"
 	"errors"
 	"fmt"
-	"github.com/dotcloud/docker/iptables"
+	"github.com/dotcloud/docker/pkg/iptables"
 	"github.com/dotcloud/docker/pkg/netlink"
 	"github.com/dotcloud/docker/proxy"
 	"github.com/dotcloud/docker/utils"

+ 2 - 1
network_test.go

@@ -1,7 +1,7 @@
 package docker
 
 import (
-	"github.com/dotcloud/docker/iptables"
+	"github.com/dotcloud/docker/pkg/iptables"
 	"github.com/dotcloud/docker/proxy"
 	"net"
 	"testing"
@@ -340,6 +340,7 @@ func NewStubProxy(frontendAddr, backendAddr net.Addr) (proxy.Proxy, error) {
 }
 
 func TestPortMapper(t *testing.T) {
+	// FIXME: is this iptables chain still used anywhere?
 	var chain *iptables.Chain
 	mapper := &PortMapper{
 		tcpMapping:       make(map[string]*net.TCPAddr),

+ 0 - 0
iptables/MAINTAINERS → pkg/iptables/MAINTAINERS


+ 0 - 0
iptables/iptables.go → pkg/iptables/iptables.go