Move cgroups package into libcontainer

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-05-14 15:21:44 -07:00
parent 9133caa6d3
commit b30f280d2f
25 changed files with 15 additions and 13 deletions

View file

@ -7,7 +7,7 @@ import (
"path/filepath"
"strconv"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
var (

View file

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
type blkioGroup struct {

View file

@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
"github.com/dotcloud/docker/pkg/system"
)

View file

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
type freezerGroup struct {

View file

@ -1,7 +1,7 @@
package fs
import (
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
type perfEventGroup struct {

View file

@ -4,7 +4,8 @@ package systemd
import (
"fmt"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
func UseSystemd() bool {

View file

@ -11,7 +11,7 @@ import (
"sync"
systemd1 "github.com/coreos/go-systemd/dbus"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
"github.com/dotcloud/docker/pkg/systemd"
"github.com/godbus/dbus"
)

View file

@ -1,7 +1,7 @@
package libcontainer
import (
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
// Context is a generic key value pair that allows

View file

@ -7,10 +7,10 @@ import (
"os/exec"
"syscall"
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/cgroups/fs"
"github.com/dotcloud/docker/pkg/cgroups/systemd"
"github.com/dotcloud/docker/pkg/libcontainer"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups/fs"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups/systemd"
"github.com/dotcloud/docker/pkg/libcontainer/network"
"github.com/dotcloud/docker/pkg/system"
)

View file

@ -3,8 +3,8 @@
package nsinit
import (
"github.com/dotcloud/docker/pkg/cgroups"
"github.com/dotcloud/docker/pkg/libcontainer"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath string, args []string, createCommand CreateCommand, startCallback func()) (int, error) {

View file

@ -1,11 +1,12 @@
package sysinfo
import (
"github.com/dotcloud/docker/pkg/cgroups"
"io/ioutil"
"log"
"os"
"path"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
type SysInfo struct {