summaryrefslogtreecommitdiff
path: root/daemon/images/image_list.go
Commit message (Collapse)AuthorAgeFilesLines
* API: omit deprecated VirtualSize field for API v1.44 and upSebastiaan van Stijn2023-05-061-5/+4
| | | | | | | | This field is deprecated since 1261fe69a3586bb102182aa885197822419c768c, and will now be omitted on API v1.44 and up for the `GET /images/json`, `GET /images/{id}/json`, and `GET /system/df` endpoints. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* API: deprecate VirtualSize field for /images/json and /images/{id}/jsonSebastiaan van Stijn2023-04-181-1/+1
| | | | | | | | | In versions of Docker before v1.10, this field was calculated from the image itself and all of its parent images. Images are now stored self-contained, and no longer use a parent-chain, making this field an equivalent of the Size field. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Merge pull request #44840 from vvoland/c8d-list-dangling-upstreamBjorn Neergaard2023-02-231-2/+0
|\ | | | | c8d/list: Fix Repo(Digests|Tags) for untagged images
| * api: Move Repo(Digests|Tags) <none> fallback from daemonPaweł Gronowski2023-02-221-2/+0
| | | | | | | | Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
* | Use GetBoolOrDefault to remove duplicated invalidFilter usagesPaweł Gronowski2023-01-261-8/+3
|/ | | | | | | The pattern of parsing bool was repeated across multiple files and caused the duplication of the invalidFilter error helper. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
* use errors.Is() to handle image store errorsSebastiaan van Stijn2023-01-021-1/+2
| | | | | | | | The image store's used are an interface, so there's no guarantee that implementations don't wrap the errors. Make sure to catch such cases by using errors.Is. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* List images with multiple since/before filtersCory Snider2022-12-081-14/+26
| | | | | | | | | | | | | | The List Images API endpoint has accepted multiple values for the `since` and `before` filter predicates, but thanks to Go's randomizing of map iteration order, it would pick an arbitrary image to compare created timestamps against. In other words, the behaviour was undefined. Change these filter predicates to have well-defined semantics: the logical AND of all values for each of the respective predicates. As timestamps are a totally-ordered relation, this is exactly equivalent to applying the newest and oldest creation timestamps for the `since` and `before` predicates, respectively. Signed-off-by: Cory Snider <csnider@mirantis.com>
* daemon/disk_usage: Use context aware singleflightPaweł Gronowski2022-11-291-0/+6
| | | | | | | | | | | | The singleflight function was capturing the context.Context of the first caller that invoked the `singleflight.Do`. This could cause all concurrent calls to be cancelled when the first request is cancelled. singleflight calls were also moved from the ImageService to Daemon, to avoid having to implement this logic in both graphdriver and containerd based image services. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
* daemon/images: fix empty-lines (revive)Sebastiaan van Stijn2022-09-281-1/+0
| | | | | | | | | | daemon/images/image_squash.go:17:71: empty-lines: extra empty line at the start of a block (revive) daemon/images/store.go:128:27: empty-lines: extra empty line at the end of a block (revive) daemon/images/image_list.go:154:55: empty-lines: extra empty line at the start of a block (revive) daemon/images/image_delete.go:135:13: empty-lines: extra empty line at the end of a block (revive) daemon/images/image_search.go:25:64: empty-lines: extra empty line at the start of a block (revive) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* ImageService.GetImage(): pass contextSebastiaan van Stijn2022-09-071-3/+3
| | | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
* introduce GetImageOpts to manage image inspect data in backendNicolas De Loof2022-08-161-2/+3
| | | | | | | | Currently only provides the existing "platform" option, but more options will be added in follow-ups. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* daemon/images: rename images.go to image_list.go for consistencySebastiaan van Stijn2022-07-181-0/+264
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>