mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: add Filters type
Add a new type to use for building filter predicates for API requests, replacing "./api/types/filters".Args in the client. Remove the now unused api/types/filters package. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
@@ -17,7 +17,6 @@ import (
|
||||
cerrdefs "github.com/containerd/errdefs"
|
||||
"github.com/moby/moby/api/types/build"
|
||||
"github.com/moby/moby/api/types/events"
|
||||
"github.com/moby/moby/api/types/filters"
|
||||
"github.com/moby/moby/api/types/image"
|
||||
"github.com/moby/moby/client"
|
||||
"github.com/moby/moby/client/pkg/jsonmessage"
|
||||
@@ -122,9 +121,9 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func buildContainerIdsFilter(buildOutput io.Reader) (filters.Args, error) {
|
||||
func buildContainerIdsFilter(buildOutput io.Reader) (client.Filters, error) {
|
||||
const intermediateContainerPrefix = " ---> Running in "
|
||||
filter := filters.NewArgs()
|
||||
filter := client.Filters{}
|
||||
|
||||
dec := json.NewDecoder(buildOutput)
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user