diff --git a/vendor.mod b/vendor.mod index dfd9628433..2dc066aca7 100644 --- a/vendor.mod +++ b/vendor.mod @@ -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 diff --git a/vendor.sum b/vendor.sum index 8d1d60245a..75279db42b 100644 --- a/vendor.sum +++ b/vendor.sum @@ -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= diff --git a/vendor/github.com/moby/moby/client/client.go b/vendor/github.com/moby/moby/client/client.go index 779a9ccb88..a07cedb0a1 100644 --- a/vendor/github.com/moby/moby/client/client.go +++ b/vendor/github.com/moby/moby/client/client.go @@ -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. diff --git a/vendor/github.com/moby/moby/client/image_list.go b/vendor/github.com/moby/moby/client/image_list.go index 6df3c66e17..8570709a7f 100644 --- a/vendor/github.com/moby/moby/client/image_list.go +++ b/vendor/github.com/moby/moby/client/image_list.go @@ -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) diff --git a/vendor/github.com/moby/moby/client/image_list_opts.go b/vendor/github.com/moby/moby/client/image_list_opts.go index a497d5790e..297ab960c5 100644 --- a/vendor/github.com/moby/moby/client/image_list_opts.go +++ b/vendor/github.com/moby/moby/client/image_list_opts.go @@ -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. diff --git a/vendor/modules.txt b/vendor/modules.txt index 9091531ada..bddf1eb5f4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -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