gofmt -s -w

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-07-24 22:25:29 +00:00
parent b3ee9ac74e
commit 5a0ef08c94
15 changed files with 24 additions and 24 deletions

View File

@ -15,8 +15,6 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/docker/libcontainer/devices"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/archive" "github.com/docker/docker/archive"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/graphdriver" "github.com/docker/docker/daemon/graphdriver"
@ -30,6 +28,8 @@ import (
"github.com/docker/docker/runconfig" "github.com/docker/docker/runconfig"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/docker/utils/broadcastwriter" "github.com/docker/docker/utils/broadcastwriter"
"github.com/docker/libcontainer/devices"
"github.com/docker/libcontainer/label"
) )
const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

View File

@ -12,7 +12,6 @@ import (
"sync" "sync"
"time" "time"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/archive" "github.com/docker/docker/archive"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/execdriver/execdrivers" "github.com/docker/docker/daemon/execdriver/execdrivers"
@ -34,6 +33,7 @@ import (
"github.com/docker/docker/runconfig" "github.com/docker/docker/runconfig"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/docker/utils/broadcastwriter" "github.com/docker/docker/utils/broadcastwriter"
"github.com/docker/libcontainer/label"
) )
// Set the max depth to the aufs default that most // Set the max depth to the aufs default that most

View File

@ -16,12 +16,12 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/docker/libcontainer/cgroups"
"github.com/docker/libcontainer/label"
"github.com/docker/libcontainer/mount/nodes"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/pkg/term" "github.com/docker/docker/pkg/term"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/libcontainer/cgroups"
"github.com/docker/libcontainer/label"
"github.com/docker/libcontainer/mount/nodes"
"github.com/kr/pty" "github.com/kr/pty"
) )

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"syscall" "syscall"
"github.com/docker/libcontainer/netlink"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/libcontainer/netlink"
) )
// Clear environment pollution introduced by lxc-start // Clear environment pollution introduced by lxc-start

View File

@ -7,12 +7,12 @@ import (
"strings" "strings"
"syscall" "syscall"
"github.com/docker/libcontainer/namespaces"
"github.com/docker/libcontainer/security/capabilities"
"github.com/docker/libcontainer/utils"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/execdriver/native/template" "github.com/docker/docker/daemon/execdriver/native/template"
"github.com/docker/docker/pkg/system" "github.com/docker/docker/pkg/system"
"github.com/docker/libcontainer/namespaces"
"github.com/docker/libcontainer/security/capabilities"
"github.com/docker/libcontainer/utils"
) )
func setHostname(hostname string) error { func setHostname(hostname string) error {

View File

@ -4,8 +4,8 @@ import (
"strings" "strings"
"text/template" "text/template"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/libcontainer/label"
) )
const LxcTemplate = ` const LxcTemplate = `

View File

@ -13,8 +13,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/docker/libcontainer/devices"
"github.com/docker/docker/daemon/execdriver" "github.com/docker/docker/daemon/execdriver"
"github.com/docker/libcontainer/devices"
) )
func TestLXCConfig(t *testing.T) { func TestLXCConfig(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/docker/libcontainer"
"github.com/docker/docker/pkg/units" "github.com/docker/docker/pkg/units"
"github.com/docker/libcontainer"
) )
type Action func(*libcontainer.Config, interface{}, string) error type Action func(*libcontainer.Config, interface{}, string) error

View File

@ -3,8 +3,8 @@ package configuration
import ( import (
"testing" "testing"
"github.com/docker/libcontainer/security/capabilities"
"github.com/docker/docker/daemon/execdriver/native/template" "github.com/docker/docker/daemon/execdriver/native/template"
"github.com/docker/libcontainer/security/capabilities"
) )
// Checks whether the expected capability is specified in the capabilities. // Checks whether the expected capability is specified in the capabilities.

View File

@ -8,14 +8,14 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/execdriver/native/configuration"
"github.com/docker/docker/daemon/execdriver/native/template"
"github.com/docker/libcontainer" "github.com/docker/libcontainer"
"github.com/docker/libcontainer/apparmor" "github.com/docker/libcontainer/apparmor"
"github.com/docker/libcontainer/devices" "github.com/docker/libcontainer/devices"
"github.com/docker/libcontainer/mount" "github.com/docker/libcontainer/mount"
"github.com/docker/libcontainer/security/capabilities" "github.com/docker/libcontainer/security/capabilities"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/execdriver/native/configuration"
"github.com/docker/docker/daemon/execdriver/native/template"
) )
// createContainer populates and configures the container type with the // createContainer populates and configures the container type with the

View File

@ -14,15 +14,15 @@ import (
"sync" "sync"
"syscall" "syscall"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/pkg/term"
"github.com/docker/libcontainer" "github.com/docker/libcontainer"
"github.com/docker/libcontainer/apparmor" "github.com/docker/libcontainer/apparmor"
"github.com/docker/libcontainer/cgroups/fs" "github.com/docker/libcontainer/cgroups/fs"
"github.com/docker/libcontainer/cgroups/systemd" "github.com/docker/libcontainer/cgroups/systemd"
"github.com/docker/libcontainer/namespaces" "github.com/docker/libcontainer/namespaces"
"github.com/docker/libcontainer/syncpipe" "github.com/docker/libcontainer/syncpipe"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/pkg/term"
) )
const ( const (

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/docker/libcontainer/security/capabilities"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/libcontainer/security/capabilities"
) )
func TweakCapabilities(basics, adds, drops []string) ([]string, error) { func TweakCapabilities(basics, adds, drops []string) ([]string, error) {

View File

@ -30,11 +30,11 @@ import (
"sync" "sync"
"syscall" "syscall"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/archive" "github.com/docker/docker/archive"
"github.com/docker/docker/daemon/graphdriver" "github.com/docker/docker/daemon/graphdriver"
mountpk "github.com/docker/docker/pkg/mount" mountpk "github.com/docker/docker/pkg/mount"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/libcontainer/label"
) )
var ( var (

View File

@ -18,10 +18,10 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/daemon/graphdriver" "github.com/docker/docker/daemon/graphdriver"
"github.com/docker/docker/pkg/units" "github.com/docker/docker/pkg/units"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/libcontainer/label"
) )
var ( var (

View File

@ -8,7 +8,6 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/docker/libcontainer/netlink"
"github.com/docker/docker/daemon/networkdriver" "github.com/docker/docker/daemon/networkdriver"
"github.com/docker/docker/daemon/networkdriver/ipallocator" "github.com/docker/docker/daemon/networkdriver/ipallocator"
"github.com/docker/docker/daemon/networkdriver/portallocator" "github.com/docker/docker/daemon/networkdriver/portallocator"
@ -17,6 +16,7 @@ import (
"github.com/docker/docker/pkg/iptables" "github.com/docker/docker/pkg/iptables"
"github.com/docker/docker/pkg/networkfs/resolvconf" "github.com/docker/docker/pkg/networkfs/resolvconf"
"github.com/docker/docker/utils" "github.com/docker/docker/utils"
"github.com/docker/libcontainer/netlink"
) )
const ( const (