Bläddra i källkod

Merge pull request #4678 from crosbymichael/move-runtime-deps

Move runtime deps
Guillaume J. Charmes 11 år sedan
förälder
incheckning
59035d291f
62 ändrade filer med 46 tillägg och 46 borttagningar
  1. 1 1
      builtins/builtins.go
  2. 1 1
      contrib/docker-device-tool/device_tool.go
  3. 1 1
      daemonconfig/config.go
  4. 1 1
      graph/graph.go
  5. 2 2
      graph/tags_unit_test.go
  6. 1 1
      image/graph.go
  7. 1 1
      image/image.go
  8. 1 1
      integration/graph_test.go
  9. 2 2
      runtime/container.go
  10. 0 0
      runtime/execdriver/MAINTAINERS
  11. 0 0
      runtime/execdriver/driver.go
  12. 3 3
      runtime/execdriver/execdrivers/execdrivers.go
  13. 1 1
      runtime/execdriver/lxc/driver.go
  14. 0 0
      runtime/execdriver/lxc/info.go
  15. 0 0
      runtime/execdriver/lxc/info_test.go
  16. 1 1
      runtime/execdriver/lxc/init.go
  17. 0 0
      runtime/execdriver/lxc/lxc_init_linux.go
  18. 0 0
      runtime/execdriver/lxc/lxc_init_unsupported.go
  19. 1 1
      runtime/execdriver/lxc/lxc_template.go
  20. 1 1
      runtime/execdriver/lxc/lxc_template_unit_test.go
  21. 1 1
      runtime/execdriver/native/default_template.go
  22. 1 1
      runtime/execdriver/native/driver.go
  23. 0 0
      runtime/execdriver/native/info.go
  24. 1 1
      runtime/execdriver/native/term.go
  25. 0 0
      runtime/execdriver/pipes.go
  26. 0 0
      runtime/execdriver/termconsole.go
  27. 1 1
      runtime/graphdriver/aufs/aufs.go
  28. 1 1
      runtime/graphdriver/aufs/aufs_test.go
  29. 0 0
      runtime/graphdriver/aufs/dirs.go
  30. 0 0
      runtime/graphdriver/aufs/migrate.go
  31. 0 0
      runtime/graphdriver/aufs/mount.go
  32. 0 0
      runtime/graphdriver/aufs/mount_linux.go
  33. 0 0
      runtime/graphdriver/aufs/mount_unsupported.go
  34. 1 1
      runtime/graphdriver/btrfs/btrfs.go
  35. 0 0
      runtime/graphdriver/btrfs/dummy_unsupported.go
  36. 0 0
      runtime/graphdriver/devmapper/attach_loopback.go
  37. 0 0
      runtime/graphdriver/devmapper/deviceset.go
  38. 0 0
      runtime/graphdriver/devmapper/devmapper.go
  39. 0 0
      runtime/graphdriver/devmapper/devmapper_doc.go
  40. 0 0
      runtime/graphdriver/devmapper/devmapper_log.go
  41. 0 0
      runtime/graphdriver/devmapper/devmapper_test.go
  42. 0 0
      runtime/graphdriver/devmapper/devmapper_wrapper.go
  43. 1 1
      runtime/graphdriver/devmapper/driver.go
  44. 1 1
      runtime/graphdriver/devmapper/driver_test.go
  45. 0 0
      runtime/graphdriver/devmapper/ioctl.go
  46. 0 0
      runtime/graphdriver/devmapper/mount.go
  47. 0 0
      runtime/graphdriver/devmapper/sys.go
  48. 0 0
      runtime/graphdriver/driver.go
  49. 1 1
      runtime/graphdriver/vfs/driver.go
  50. 1 1
      runtime/networkdriver/ipallocator/allocator.go
  51. 0 0
      runtime/networkdriver/ipallocator/allocator_test.go
  52. 4 4
      runtime/networkdriver/lxc/driver.go
  53. 0 0
      runtime/networkdriver/network.go
  54. 0 0
      runtime/networkdriver/network_test.go
  55. 0 0
      runtime/networkdriver/portallocator/portallocator.go
  56. 0 0
      runtime/networkdriver/portallocator/portallocator_test.go
  57. 0 0
      runtime/networkdriver/portmapper/mapper.go
  58. 0 0
      runtime/networkdriver/portmapper/mapper_test.go
  59. 0 0
      runtime/networkdriver/utils.go
  60. 10 10
      runtime/runtime.go
  61. 1 1
      runtime/volumes.go
  62. 3 3
      sysinit/sysinit.go

+ 1 - 1
builtins/builtins.go

@@ -4,7 +4,7 @@ import (
 	"github.com/dotcloud/docker/engine"
 
 	"github.com/dotcloud/docker/api"
-	"github.com/dotcloud/docker/networkdriver/lxc"
+	"github.com/dotcloud/docker/runtime/networkdriver/lxc"
 	"github.com/dotcloud/docker/server"
 )
 

+ 1 - 1
contrib/docker-device-tool/device_tool.go

@@ -3,7 +3,7 @@ package main
 import (
 	"flag"
 	"fmt"
-	"github.com/dotcloud/docker/graphdriver/devmapper"
+	"github.com/dotcloud/docker/runtime/graphdriver/devmapper"
 	"os"
 	"path"
 	"sort"

+ 1 - 1
daemonconfig/config.go

@@ -4,7 +4,7 @@ import (
 	"net"
 
 	"github.com/dotcloud/docker/engine"
-	"github.com/dotcloud/docker/networkdriver"
+	"github.com/dotcloud/docker/runtime/networkdriver"
 )
 
 const (

+ 1 - 1
graph/graph.go

@@ -4,9 +4,9 @@ import (
 	"fmt"
 	"github.com/dotcloud/docker/archive"
 	"github.com/dotcloud/docker/dockerversion"
-	"github.com/dotcloud/docker/graphdriver"
 	"github.com/dotcloud/docker/image"
 	"github.com/dotcloud/docker/runconfig"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"io"
 	"io/ioutil"

+ 2 - 2
graph/tags_unit_test.go

@@ -2,9 +2,9 @@ package graph
 
 import (
 	"bytes"
-	"github.com/dotcloud/docker/graphdriver"
-	_ "github.com/dotcloud/docker/graphdriver/vfs" // import the vfs driver so it is used in the tests
 	"github.com/dotcloud/docker/image"
+	"github.com/dotcloud/docker/runtime/graphdriver"
+	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs" // import the vfs driver so it is used in the tests
 	"github.com/dotcloud/docker/utils"
 	"github.com/dotcloud/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
 	"io"

+ 1 - 1
image/graph.go

@@ -1,7 +1,7 @@
 package image
 
 import (
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 )
 
 type Graph interface {

+ 1 - 1
image/image.go

@@ -4,8 +4,8 @@ import (
 	"encoding/json"
 	"fmt"
 	"github.com/dotcloud/docker/archive"
-	"github.com/dotcloud/docker/graphdriver"
 	"github.com/dotcloud/docker/runconfig"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"io/ioutil"
 	"os"

+ 1 - 1
integration/graph_test.go

@@ -5,8 +5,8 @@ import (
 	"github.com/dotcloud/docker/archive"
 	"github.com/dotcloud/docker/dockerversion"
 	"github.com/dotcloud/docker/graph"
-	"github.com/dotcloud/docker/graphdriver"
 	"github.com/dotcloud/docker/image"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"io"
 	"io/ioutil"

+ 2 - 2
runtime/container.go

@@ -6,12 +6,12 @@ import (
 	"fmt"
 	"github.com/dotcloud/docker/archive"
 	"github.com/dotcloud/docker/engine"
-	"github.com/dotcloud/docker/execdriver"
-	"github.com/dotcloud/docker/graphdriver"
 	"github.com/dotcloud/docker/image"
 	"github.com/dotcloud/docker/links"
 	"github.com/dotcloud/docker/nat"
 	"github.com/dotcloud/docker/runconfig"
+	"github.com/dotcloud/docker/runtime/execdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"io"
 	"io/ioutil"

+ 0 - 0
execdriver/MAINTAINERS → runtime/execdriver/MAINTAINERS


+ 0 - 0
execdriver/driver.go → runtime/execdriver/driver.go


+ 3 - 3
execdriver/execdrivers/execdrivers.go → runtime/execdriver/execdrivers/execdrivers.go

@@ -2,10 +2,10 @@ package execdrivers
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
-	"github.com/dotcloud/docker/execdriver/lxc"
-	"github.com/dotcloud/docker/execdriver/native"
 	"github.com/dotcloud/docker/pkg/sysinfo"
+	"github.com/dotcloud/docker/runtime/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver/lxc"
+	"github.com/dotcloud/docker/runtime/execdriver/native"
 	"path"
 )
 

+ 1 - 1
execdriver/lxc/driver.go → runtime/execdriver/lxc/driver.go

@@ -2,8 +2,8 @@ package lxc
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
 	"github.com/dotcloud/docker/pkg/cgroups"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"github.com/dotcloud/docker/utils"
 	"io/ioutil"
 	"log"

+ 0 - 0
execdriver/lxc/info.go → runtime/execdriver/lxc/info.go


+ 0 - 0
execdriver/lxc/info_test.go → runtime/execdriver/lxc/info_test.go


+ 1 - 1
execdriver/lxc/init.go → runtime/execdriver/lxc/init.go

@@ -3,9 +3,9 @@ package lxc
 import (
 	"encoding/json"
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
 	"github.com/dotcloud/docker/pkg/netlink"
 	"github.com/dotcloud/docker/pkg/user"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"github.com/syndtr/gocapability/capability"
 	"io/ioutil"
 	"net"

+ 0 - 0
execdriver/lxc/lxc_init_linux.go → runtime/execdriver/lxc/lxc_init_linux.go


+ 0 - 0
execdriver/lxc/lxc_init_unsupported.go → runtime/execdriver/lxc/lxc_init_unsupported.go


+ 1 - 1
execdriver/lxc/lxc_template.go → runtime/execdriver/lxc/lxc_template.go

@@ -1,7 +1,7 @@
 package lxc
 
 import (
-	"github.com/dotcloud/docker/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"strings"
 	"text/template"
 )

+ 1 - 1
execdriver/lxc/lxc_template_unit_test.go → runtime/execdriver/lxc/lxc_template_unit_test.go

@@ -3,7 +3,7 @@ package lxc
 import (
 	"bufio"
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"io/ioutil"
 	"math/rand"
 	"os"

+ 1 - 1
execdriver/native/default_template.go → runtime/execdriver/native/default_template.go

@@ -2,9 +2,9 @@ package native
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
 	"github.com/dotcloud/docker/pkg/cgroups"
 	"github.com/dotcloud/docker/pkg/libcontainer"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"os"
 )
 

+ 1 - 1
execdriver/native/driver.go → runtime/execdriver/native/driver.go

@@ -3,12 +3,12 @@ package native
 import (
 	"encoding/json"
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
 	"github.com/dotcloud/docker/pkg/cgroups"
 	"github.com/dotcloud/docker/pkg/libcontainer"
 	"github.com/dotcloud/docker/pkg/libcontainer/apparmor"
 	"github.com/dotcloud/docker/pkg/libcontainer/nsinit"
 	"github.com/dotcloud/docker/pkg/system"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"io"
 	"io/ioutil"
 	"log"

+ 0 - 0
execdriver/native/info.go → runtime/execdriver/native/info.go


+ 1 - 1
execdriver/native/term.go → runtime/execdriver/native/term.go

@@ -5,7 +5,7 @@
 package native
 
 import (
-	"github.com/dotcloud/docker/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"io"
 	"os"
 	"os/exec"

+ 0 - 0
execdriver/pipes.go → runtime/execdriver/pipes.go


+ 0 - 0
execdriver/termconsole.go → runtime/execdriver/termconsole.go


+ 1 - 1
graphdriver/aufs/aufs.go → runtime/graphdriver/aufs/aufs.go

@@ -24,8 +24,8 @@ import (
 	"bufio"
 	"fmt"
 	"github.com/dotcloud/docker/archive"
-	"github.com/dotcloud/docker/graphdriver"
 	mountpk "github.com/dotcloud/docker/pkg/mount"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"os"
 	"os/exec"

+ 1 - 1
graphdriver/aufs/aufs_test.go → runtime/graphdriver/aufs/aufs_test.go

@@ -5,7 +5,7 @@ import (
 	"encoding/hex"
 	"fmt"
 	"github.com/dotcloud/docker/archive"
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"io/ioutil"
 	"os"
 	"path"

+ 0 - 0
graphdriver/aufs/dirs.go → runtime/graphdriver/aufs/dirs.go


+ 0 - 0
graphdriver/aufs/migrate.go → runtime/graphdriver/aufs/migrate.go


+ 0 - 0
graphdriver/aufs/mount.go → runtime/graphdriver/aufs/mount.go


+ 0 - 0
graphdriver/aufs/mount_linux.go → runtime/graphdriver/aufs/mount_linux.go


+ 0 - 0
graphdriver/aufs/mount_unsupported.go → runtime/graphdriver/aufs/mount_unsupported.go


+ 1 - 1
graphdriver/btrfs/btrfs.go → runtime/graphdriver/btrfs/btrfs.go

@@ -11,7 +11,7 @@ import "C"
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"os"
 	"path"
 	"syscall"

+ 0 - 0
graphdriver/btrfs/dummy_unsupported.go → runtime/graphdriver/btrfs/dummy_unsupported.go


+ 0 - 0
graphdriver/devmapper/attach_loopback.go → runtime/graphdriver/devmapper/attach_loopback.go


+ 0 - 0
graphdriver/devmapper/deviceset.go → runtime/graphdriver/devmapper/deviceset.go


+ 0 - 0
graphdriver/devmapper/devmapper.go → runtime/graphdriver/devmapper/devmapper.go


+ 0 - 0
graphdriver/devmapper/devmapper_doc.go → runtime/graphdriver/devmapper/devmapper_doc.go


+ 0 - 0
graphdriver/devmapper/devmapper_log.go → runtime/graphdriver/devmapper/devmapper_log.go


+ 0 - 0
graphdriver/devmapper/devmapper_test.go → runtime/graphdriver/devmapper/devmapper_test.go


+ 0 - 0
graphdriver/devmapper/devmapper_wrapper.go → runtime/graphdriver/devmapper/devmapper_wrapper.go


+ 1 - 1
graphdriver/devmapper/driver.go → runtime/graphdriver/devmapper/driver.go

@@ -4,7 +4,7 @@ package devmapper
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/utils"
 	"io/ioutil"
 	"os"

+ 1 - 1
graphdriver/devmapper/driver_test.go → runtime/graphdriver/devmapper/driver_test.go

@@ -4,7 +4,7 @@ package devmapper
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"io/ioutil"
 	"path"
 	"runtime"

+ 0 - 0
graphdriver/devmapper/ioctl.go → runtime/graphdriver/devmapper/ioctl.go


+ 0 - 0
graphdriver/devmapper/mount.go → runtime/graphdriver/devmapper/mount.go


+ 0 - 0
graphdriver/devmapper/sys.go → runtime/graphdriver/devmapper/sys.go


+ 0 - 0
graphdriver/driver.go → runtime/graphdriver/driver.go


+ 1 - 1
graphdriver/vfs/driver.go → runtime/graphdriver/vfs/driver.go

@@ -2,7 +2,7 @@ package vfs
 
 import (
 	"fmt"
-	"github.com/dotcloud/docker/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver"
 	"os"
 	"os/exec"
 	"path"

+ 1 - 1
networkdriver/ipallocator/allocator.go → runtime/networkdriver/ipallocator/allocator.go

@@ -3,8 +3,8 @@ package ipallocator
 import (
 	"encoding/binary"
 	"errors"
-	"github.com/dotcloud/docker/networkdriver"
 	"github.com/dotcloud/docker/pkg/collections"
+	"github.com/dotcloud/docker/runtime/networkdriver"
 	"net"
 	"sync"
 )

+ 0 - 0
networkdriver/ipallocator/allocator_test.go → runtime/networkdriver/ipallocator/allocator_test.go


+ 4 - 4
networkdriver/lxc/driver.go → runtime/networkdriver/lxc/driver.go

@@ -3,12 +3,12 @@ package lxc
 import (
 	"fmt"
 	"github.com/dotcloud/docker/engine"
-	"github.com/dotcloud/docker/networkdriver"
-	"github.com/dotcloud/docker/networkdriver/ipallocator"
-	"github.com/dotcloud/docker/networkdriver/portallocator"
-	"github.com/dotcloud/docker/networkdriver/portmapper"
 	"github.com/dotcloud/docker/pkg/iptables"
 	"github.com/dotcloud/docker/pkg/netlink"
+	"github.com/dotcloud/docker/runtime/networkdriver"
+	"github.com/dotcloud/docker/runtime/networkdriver/ipallocator"
+	"github.com/dotcloud/docker/runtime/networkdriver/portallocator"
+	"github.com/dotcloud/docker/runtime/networkdriver/portmapper"
 	"github.com/dotcloud/docker/utils"
 	"io/ioutil"
 	"log"

+ 0 - 0
networkdriver/network.go → runtime/networkdriver/network.go


+ 0 - 0
networkdriver/network_test.go → runtime/networkdriver/network_test.go


+ 0 - 0
networkdriver/portallocator/portallocator.go → runtime/networkdriver/portallocator/portallocator.go


+ 0 - 0
networkdriver/portallocator/portallocator_test.go → runtime/networkdriver/portallocator/portallocator_test.go


+ 0 - 0
networkdriver/portmapper/mapper.go → runtime/networkdriver/portmapper/mapper.go


+ 0 - 0
networkdriver/portmapper/mapper_test.go → runtime/networkdriver/portmapper/mapper_test.go


+ 0 - 0
networkdriver/utils.go → runtime/networkdriver/utils.go


+ 10 - 10
runtime/runtime.go

@@ -7,21 +7,21 @@ import (
 	"github.com/dotcloud/docker/daemonconfig"
 	"github.com/dotcloud/docker/dockerversion"
 	"github.com/dotcloud/docker/engine"
-	"github.com/dotcloud/docker/execdriver"
-	"github.com/dotcloud/docker/execdriver/execdrivers"
-	"github.com/dotcloud/docker/execdriver/lxc"
 	"github.com/dotcloud/docker/graph"
-	"github.com/dotcloud/docker/graphdriver"
-	"github.com/dotcloud/docker/graphdriver/aufs"
-	_ "github.com/dotcloud/docker/graphdriver/btrfs"
-	_ "github.com/dotcloud/docker/graphdriver/devmapper"
-	_ "github.com/dotcloud/docker/graphdriver/vfs"
 	"github.com/dotcloud/docker/image"
-	_ "github.com/dotcloud/docker/networkdriver/lxc"
-	"github.com/dotcloud/docker/networkdriver/portallocator"
 	"github.com/dotcloud/docker/pkg/graphdb"
 	"github.com/dotcloud/docker/pkg/sysinfo"
 	"github.com/dotcloud/docker/runconfig"
+	"github.com/dotcloud/docker/runtime/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver/execdrivers"
+	"github.com/dotcloud/docker/runtime/execdriver/lxc"
+	"github.com/dotcloud/docker/runtime/graphdriver"
+	"github.com/dotcloud/docker/runtime/graphdriver/aufs"
+	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
+	_ "github.com/dotcloud/docker/runtime/graphdriver/devmapper"
+	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs"
+	_ "github.com/dotcloud/docker/runtime/networkdriver/lxc"
+	"github.com/dotcloud/docker/runtime/networkdriver/portallocator"
 	"github.com/dotcloud/docker/utils"
 	"io"
 	"io/ioutil"

+ 1 - 1
runtime/volumes.go

@@ -3,7 +3,7 @@ package runtime
 import (
 	"fmt"
 	"github.com/dotcloud/docker/archive"
-	"github.com/dotcloud/docker/execdriver"
+	"github.com/dotcloud/docker/runtime/execdriver"
 	"github.com/dotcloud/docker/utils"
 	"io/ioutil"
 	"os"

+ 3 - 3
sysinit/sysinit.go

@@ -3,9 +3,9 @@ package sysinit
 import (
 	"flag"
 	"fmt"
-	"github.com/dotcloud/docker/execdriver"
-	_ "github.com/dotcloud/docker/execdriver/lxc"
-	_ "github.com/dotcloud/docker/execdriver/native"
+	"github.com/dotcloud/docker/runtime/execdriver"
+	_ "github.com/dotcloud/docker/runtime/execdriver/lxc"
+	_ "github.com/dotcloud/docker/runtime/execdriver/native"
 	"log"
 	"os"
 )