Skip to content

Commit 24e95b8

Browse files
committed
vendor: github.com/moby/moby/api v1.52.0-beta.2, moby/client v0.1.0-beta.2
full diff: - moby/moby@0769fe7...api/v1.52.0-beta.2 - moby/moby@0769fe7...client/v0.1.0-beta.2 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent c844f92 commit 24e95b8

File tree

9 files changed

+28
-47
lines changed

9 files changed

+28
-47
lines changed

cli/command/container/stats.go

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,6 @@ var acceptedStatsFilters = map[string]bool{
101101
"label": true,
102102
}
103103

104-
// cloneFilters returns a deep copy of f.
105-
//
106-
// TODO(thaJeztah): add this as a "Clone" method on client.Filters.
107-
func cloneFilters(f client.Filters) client.Filters {
108-
if f == nil {
109-
return nil
110-
}
111-
out := make(client.Filters, len(f))
112-
for term, values := range f {
113-
inner := make(map[string]bool, len(values))
114-
for v, ok := range values {
115-
inner[v] = ok
116-
}
117-
out[term] = inner
118-
}
119-
return out
120-
}
121-
122104
// RunStats displays a live stream of resource usage statistics for one or more containers.
123105
// This shows real-time information on CPU usage, memory usage, and network I/O.
124106
//
@@ -183,8 +165,7 @@ func RunStats(ctx context.Context, dockerCLI command.Cli, options *StatsOptions)
183165
// the original set of filters. Custom filters are used both
184166
// to list containers and to filter events, but the "type" filter
185167
// is not valid for filtering containers.
186-
f := cloneFilters(options.Filters)
187-
f.Add("type", string(events.ContainerEventType))
168+
f := options.Filters.Clone().Add("type", string(events.ContainerEventType))
188169
eventChan, errChan := apiClient.Events(ctx, client.EventsListOptions{
189170
Filters: f,
190171
})

cli/command/utils.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
// (i.e., "label=some-value" conflicts with "label!=some-value", and vice versa),
2424
// then the filter defined in config.json is omitted.
2525
func PruneFilters(dockerCLI config.Provider, filters client.Filters) client.Filters {
26-
pruneFilters := cloneFilters(filters)
26+
pruneFilters := filters.Clone()
2727

2828
cfg := dockerCLI.ConfigFile()
2929
if cfg == nil {
@@ -58,21 +58,6 @@ func PruneFilters(dockerCLI config.Provider, filters client.Filters) client.Filt
5858
return pruneFilters
5959
}
6060

61-
// cloneFilters returns a deep copy of f, creating a new filter if f is nil.
62-
//
63-
// TODO(thaJeztah): add this as a "Clone" method on client.Filters.
64-
func cloneFilters(f client.Filters) client.Filters {
65-
out := make(client.Filters, len(f))
66-
for term, values := range f {
67-
inner := make(map[string]bool, len(values))
68-
for v, ok := range values {
69-
inner[v] = ok
70-
}
71-
out[term] = inner
72-
}
73-
return out
74-
}
75-
7661
// ValidateOutputPath validates the output paths of the "docker cp" command.
7762
func ValidateOutputPath(path string) error {
7863
dir := filepath.Dir(filepath.Clean(path))

vendor.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ require (
2828
github.com/google/uuid v1.6.0
2929
github.com/mattn/go-runewidth v0.0.17
3030
github.com/moby/go-archive v0.1.0
31-
github.com/moby/moby/api v1.52.0-beta.1.0.20251010153343-0769fe708773 // master
32-
github.com/moby/moby/client v0.1.0-beta.0.0.20251010153343-0769fe708773 // master
31+
github.com/moby/moby/api v1.52.0-beta.2
32+
github.com/moby/moby/client v0.1.0-beta.2
3333
github.com/moby/patternmatcher v0.6.0
3434
github.com/moby/swarmkit/v2 v2.1.0
3535
github.com/moby/sys/atomicwriter v0.1.0

vendor.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N
170170
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
171171
github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ=
172172
github.com/moby/go-archive v0.1.0/go.mod h1:G9B+YoujNohJmrIYFBpSd54GTUB4lt9S+xVQvsJyFuo=
173-
github.com/moby/moby/api v1.52.0-beta.1.0.20251010153343-0769fe708773 h1:SY73tuW7whJlBtFXGdeIlJhdGD6Hcwz7Wjl7E0Flolc=
174-
github.com/moby/moby/api v1.52.0-beta.1.0.20251010153343-0769fe708773/go.mod h1:/ou52HkRydg4+odrUR3vFsGgjIyHvprrpEQEkweL10s=
175-
github.com/moby/moby/client v0.1.0-beta.0.0.20251010153343-0769fe708773 h1:8hci/QpqJiLKap87P/1YF1pLtYF8XpWdPyQQmPPcYDc=
176-
github.com/moby/moby/client v0.1.0-beta.0.0.20251010153343-0769fe708773/go.mod h1:o5CkJu0RlmnLWRZRaEd7fL6wo0Ggr8Hw/UvgqdIUBuI=
173+
github.com/moby/moby/api v1.52.0-beta.2 h1:cuilbu4cLBZnlNpJXuv3QTleOxgo3kGqkNGt3ICe1yY=
174+
github.com/moby/moby/api v1.52.0-beta.2/go.mod h1:/ou52HkRydg4+odrUR3vFsGgjIyHvprrpEQEkweL10s=
175+
github.com/moby/moby/client v0.1.0-beta.2 h1:Uy7JhcAOvQAQriowODpHaAJokfw/AhUya0216sk1hAk=
176+
github.com/moby/moby/client v0.1.0-beta.2/go.mod h1:yYEv2G6pYi8u63ga0zlU9KsM7DpoGXubtMaZMJE7/dw=
177177
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
178178
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
179179
github.com/moby/swarmkit/v2 v2.1.0 h1:u+cJ5hSyF3HnzsyI+NtegYxdIPQIuibk7IbpXNxuISM=

vendor/github.com/moby/moby/api/types/container/config.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/moby/api/types/image/image_history.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/moby/api/types/volume/volume.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/moby/client/filters.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ github.com/moby/docker-image-spec/specs-go/v1
168168
github.com/moby/go-archive
169169
github.com/moby/go-archive/compression
170170
github.com/moby/go-archive/tarheader
171-
# github.com/moby/moby/api v1.52.0-beta.1.0.20251010153343-0769fe708773
171+
# github.com/moby/moby/api v1.52.0-beta.2
172172
## explicit; go 1.23.0
173173
github.com/moby/moby/api/pkg/authconfig
174174
github.com/moby/moby/api/pkg/progress
@@ -193,7 +193,7 @@ github.com/moby/moby/api/types/swarm
193193
github.com/moby/moby/api/types/system
194194
github.com/moby/moby/api/types/versions
195195
github.com/moby/moby/api/types/volume
196-
# github.com/moby/moby/client v0.1.0-beta.0.0.20251010153343-0769fe708773
196+
# github.com/moby/moby/client v0.1.0-beta.2
197197
## explicit; go 1.23.0
198198
github.com/moby/moby/client
199199
github.com/moby/moby/client/internal

0 commit comments

Comments
 (0)