1
0
mirror of https://github.com/docker/cli.git synced 2026-10-31 11:35:26 +03:00

vendor: github.com/moby/moby/client v0.2.3-rc.1

full diff: https://github.com/moby/moby/client/compare/52dc67c0df94...v0.2.3-rc.1

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2026-02-27 20:34:37 +01:00
parent 139b58d7f4
commit 0bf060f777
6 changed files with 16 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ require (
github.com/mattn/go-runewidth v0.0.20
github.com/moby/go-archive v0.2.0
github.com/moby/moby/api v1.54.0-rc.1
github.com/moby/moby/client v0.2.3-0.20260227170702-52dc67c0df94
github.com/moby/moby/client v0.2.3-rc.1
github.com/moby/patternmatcher v0.6.0
github.com/moby/swarmkit/v2 v2.1.1
github.com/moby/sys/atomicwriter v0.1.0

View File

@@ -115,8 +115,8 @@ github.com/moby/go-archive v0.2.0 h1:zg5QDUM2mi0JIM9fdQZWC7U8+2ZfixfTYoHL7rWUcP8
github.com/moby/go-archive v0.2.0/go.mod h1:mNeivT14o8xU+5q1YnNrkQVpK+dnNe/K6fHqnTg4qPU=
github.com/moby/moby/api v1.54.0-rc.1 h1:y7yOnvjD24qWOof0kAk/wU76Kjmmn/Rfstv2bS2z4vE=
github.com/moby/moby/api v1.54.0-rc.1/go.mod h1:8mb+ReTlisw4pS6BRzCMts5M49W5M7bKt1cJy/YbAqc=
github.com/moby/moby/client v0.2.3-0.20260227170702-52dc67c0df94 h1:UnDieHg5LGQYDVEpni5h67HRNvSZMP1FguKrzot3r1o=
github.com/moby/moby/client v0.2.3-0.20260227170702-52dc67c0df94/go.mod h1:BLj1NHZAHj53G+DSOsojqE/AbtIFy+ygUNErODq1zbc=
github.com/moby/moby/client v0.2.3-rc.1 h1:EJU7m5WunbgLw8ufo6TIxiLEpqXvBSzHhjXl9Z1B5jo=
github.com/moby/moby/client v0.2.3-rc.1/go.mod h1:b3+CF2Ln9mr96ROGGjWx8cnVvkVBcOo69OoeIsralw0=
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
github.com/moby/swarmkit/v2 v2.1.1 h1:yvTJ8MMCc3f0qTA44J6R59EZ5yZawdYopkpuLk4+ICU=

View File

@@ -107,7 +107,7 @@ const DummyHost = "api.moby.localhost"
// overriding the version and disable API-version negotiation.
//
// This version may be lower than the version of the api library module used.
const MaxAPIVersion = "1.53"
const MaxAPIVersion = "1.54"
// MinAPIVersion is the minimum API version supported by the client. API versions
// below this version are not considered when performing API-version negotiation.

View File

@@ -41,6 +41,14 @@ func (cli *Client) ImageList(ctx context.Context, options ImageListOptions) (Ima
query.Set("manifests", "1")
}
}
if options.Identity {
if err := cli.requiresVersion(ctx, "1.54", "identity"); err != nil {
return ImageListResult{}, err
}
// Identity data in image list is scoped to manifests.
query.Set("manifests", "1")
query.Set("identity", "1")
}
resp, err := cli.get(ctx, "/images/json", query, nil)
defer ensureReaderClosed(resp)

View File

@@ -16,6 +16,9 @@ type ImageListOptions struct {
// Manifests indicates whether the image manifests should be returned.
Manifests bool
// Identity indicates whether image identity information should be returned.
Identity bool
}
// ImageListResult holds the result from ImageList.

2
vendor/modules.txt vendored
View File

@@ -189,7 +189,7 @@ github.com/moby/moby/api/types/storage
github.com/moby/moby/api/types/swarm
github.com/moby/moby/api/types/system
github.com/moby/moby/api/types/volume
# github.com/moby/moby/client v0.2.3-0.20260227170702-52dc67c0df94
# github.com/moby/moby/client v0.2.3-rc.1
## explicit; go 1.24.0
github.com/moby/moby/client
github.com/moby/moby/client/internal