Skip to content

Commit

Permalink
Replace pkg/units with docker/go-units.
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <david.calavera@gmail.com>
  • Loading branch information
calavera committed Dec 16, 2015
1 parent 0609342 commit 4fef42b
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 299 deletions.
2 changes: 1 addition & 1 deletion api/client/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import (
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
"github.com/docker/docker/pkg/ulimit"
"github.com/docker/docker/pkg/units"
"github.com/docker/docker/pkg/urlutil"
"github.com/docker/docker/registry"
tagpkg "github.com/docker/docker/tag"
"github.com/docker/docker/utils"
"github.com/docker/go-units"
)

// CmdBuild builds a new image from the source code at a given path.
Expand Down
2 changes: 1 addition & 1 deletion api/client/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
flag "github.com/docker/docker/pkg/mflag"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/stringutils"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// CmdHistory shows the history of an image.
Expand Down
2 changes: 1 addition & 1 deletion api/client/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
flag "github.com/docker/docker/pkg/mflag"
"github.com/docker/docker/pkg/parsers/filters"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// CmdImages lists the images in a specified repository, or all top-level images if no repository is specified.
Expand Down
2 changes: 1 addition & 1 deletion api/client/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
Cli "github.com/docker/docker/cli"
"github.com/docker/docker/pkg/ioutils"
flag "github.com/docker/docker/pkg/mflag"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// CmdInfo displays system-wide information.
Expand Down
2 changes: 1 addition & 1 deletion api/client/lib/image_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"

"github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/units"
"github.com/docker/docker/runconfig"
"github.com/docker/go-units"
)

var headerRegexp = regexp.MustCompile(`\ADocker/.+\s\((.+)\)\z`)
Expand Down
2 changes: 1 addition & 1 deletion api/client/ps/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/stringutils"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/client/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/docker/docker/api/types"
Cli "github.com/docker/docker/cli"
"github.com/docker/docker/pkg/jsonmessage"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

type containerStats struct {
Expand Down
3 changes: 2 additions & 1 deletion api/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"path/filepath"
"testing"

"github.com/docker/docker/api/types"
"os"

"github.com/docker/docker/api/types"
)

type ports struct {
Expand Down
2 changes: 1 addition & 1 deletion container/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/docker/docker/daemon/execdriver"
derr "github.com/docker/docker/errors"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// State holds the current container state, and has methods to get and
Expand Down
2 changes: 1 addition & 1 deletion daemon/graphdriver/devmapper/deviceset.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/docker/docker/pkg/idtools"
"github.com/docker/docker/pkg/mount"
"github.com/docker/docker/pkg/parsers"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"

"github.com/opencontainers/runc/libcontainer/label"
)
Expand Down
2 changes: 1 addition & 1 deletion daemon/graphdriver/devmapper/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/docker/docker/pkg/devicemapper"
"github.com/docker/docker/pkg/idtools"
"github.com/docker/docker/pkg/mount"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion daemon/logger/jsonfilelog/jsonfilelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/docker/docker/daemon/logger"
"github.com/docker/docker/daemon/logger/loggerutils"
"github.com/docker/docker/pkg/jsonlog"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// Name is the name of the file that the jsonlogger logs to.
Expand Down
2 changes: 1 addition & 1 deletion opts/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/docker/docker/pkg/blkiodev"
"github.com/docker/docker/pkg/parsers"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/jsonmessage/jsonmessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/docker/docker/pkg/jsonlog"
"github.com/docker/docker/pkg/term"
"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// JSONError wraps a concrete Code and Message, `Code` is
Expand Down
2 changes: 1 addition & 1 deletion pkg/system/meminfo_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// ReadMemInfo retrieves memory statistics of the host system and returns a
Expand Down
2 changes: 1 addition & 1 deletion pkg/system/meminfo_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/docker/docker/pkg/units"
"github.com/docker/go-units"
)

// TestMemInfo tests parseMemInfo with a static meminfo string
Expand Down
33 changes: 0 additions & 33 deletions pkg/units/duration.go

This file was deleted.

46 changes: 0 additions & 46 deletions pkg/units/duration_test.go

This file was deleted.

95 changes: 0 additions & 95 deletions pkg/units/size.go

This file was deleted.

Loading

0 comments on commit 4fef42b

Please sign in to comment.