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"
"time"
"github.com/docker/libcontainer/devices"
"github.com/docker/libcontainer/label"
"github.com/docker/docker/archive"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/graphdriver"
@ -30,6 +28,8 @@ import (
"github.com/docker/docker/runconfig"
"github.com/docker/docker/utils"
"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"

View file

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

View file

@ -16,12 +16,12 @@ import (
"syscall"
"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/pkg/term"
"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"
)

View file

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

View file

@ -7,12 +7,12 @@ import (
"strings"
"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/native/template"
"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 {

View file

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

View file

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

View file

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

View file

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

View file

@ -8,14 +8,14 @@ import (
"os/exec"
"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/apparmor"
"github.com/docker/libcontainer/devices"
"github.com/docker/libcontainer/mount"
"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

View file

@ -14,15 +14,15 @@ import (
"sync"
"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/apparmor"
"github.com/docker/libcontainer/cgroups/fs"
"github.com/docker/libcontainer/cgroups/systemd"
"github.com/docker/libcontainer/namespaces"
"github.com/docker/libcontainer/syncpipe"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/pkg/term"
)
const (

View file

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

View file

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

View file

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

View file

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