Skip to content

Commit e98cae4

Browse files
committed
Move filters package to the API.
These filters are only use to interchange data between clients and daemons. They don't belong to the parsers package. Signed-off-by: David Calavera <david.calavera@gmail.com>
1 parent 52fd300 commit e98cae4

File tree

21 files changed

+21
-20
lines changed

21 files changed

+21
-20
lines changed

api/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"github.com/docker/docker/api/client/lib"
1111
"github.com/docker/docker/api/types"
12+
"github.com/docker/docker/api/types/filters"
1213
"github.com/docker/docker/api/types/registry"
13-
"github.com/docker/docker/pkg/parsers/filters"
1414
"github.com/docker/docker/runconfig"
1515
)
1616

api/client/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package client
22

33
import (
44
"github.com/docker/docker/api/types"
5+
"github.com/docker/docker/api/types/filters"
56
Cli "github.com/docker/docker/cli"
67
"github.com/docker/docker/opts"
78
"github.com/docker/docker/pkg/jsonmessage"
89
flag "github.com/docker/docker/pkg/mflag"
9-
"github.com/docker/docker/pkg/parsers/filters"
1010
)
1111

1212
// CmdEvents prints a live stream of real time events from the server.

api/client/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
"github.com/docker/distribution/reference"
1010
"github.com/docker/docker/api/types"
11+
"github.com/docker/docker/api/types/filters"
1112
Cli "github.com/docker/docker/cli"
1213
"github.com/docker/docker/opts"
1314
flag "github.com/docker/docker/pkg/mflag"
14-
"github.com/docker/docker/pkg/parsers/filters"
1515
"github.com/docker/docker/pkg/stringid"
1616
"github.com/docker/docker/pkg/units"
1717
)

api/client/lib/container_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77

88
"github.com/docker/docker/api/types"
9-
"github.com/docker/docker/pkg/parsers/filters"
9+
"github.com/docker/docker/api/types/filters"
1010
)
1111

1212
// ContainerList returns the list of containers in the docker host.

api/client/lib/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"time"
77

88
"github.com/docker/docker/api/types"
9+
"github.com/docker/docker/api/types/filters"
910
timetypes "github.com/docker/docker/api/types/time"
10-
"github.com/docker/docker/pkg/parsers/filters"
1111
)
1212

1313
// Events returns a stream of events in the daemon in a ReadCloser.

api/client/lib/image_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/url"
66

77
"github.com/docker/docker/api/types"
8-
"github.com/docker/docker/pkg/parsers/filters"
8+
"github.com/docker/docker/api/types/filters"
99
)
1010

1111
// ImageList returns a list of images in the docker host.

api/client/lib/volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/url"
77

88
"github.com/docker/docker/api/types"
9-
"github.com/docker/docker/pkg/parsers/filters"
9+
"github.com/docker/docker/api/types/filters"
1010
)
1111

1212
// VolumeList returns the volumes configured in the docker host.

api/client/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package client
33
import (
44
"github.com/docker/docker/api/client/ps"
55
"github.com/docker/docker/api/types"
6+
"github.com/docker/docker/api/types/filters"
67
Cli "github.com/docker/docker/cli"
78
"github.com/docker/docker/opts"
89
flag "github.com/docker/docker/pkg/mflag"
9-
"github.com/docker/docker/pkg/parsers/filters"
1010
)
1111

1212
// CmdPs outputs a list of Docker containers.

api/client/volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"text/tabwriter"
66

77
"github.com/docker/docker/api/types"
8+
"github.com/docker/docker/api/types/filters"
89
Cli "github.com/docker/docker/cli"
910
"github.com/docker/docker/opts"
1011
flag "github.com/docker/docker/pkg/mflag"
11-
"github.com/docker/docker/pkg/parsers/filters"
1212
)
1313

1414
// CmdVolume is the parent subcommand for all volume commands

api/common_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"github.com/docker/docker/api/types"
98
"os"
9+
10+
"github.com/docker/docker/api/types"
1011
)
1112

1213
type ports struct {

0 commit comments

Comments
 (0)