moby--moby/daemon/images
Sebastiaan van Stijn a5be5801e9
search: un-export registry.DefaultSearchLimit, and fix API status codes
Move the default to the service itself, and produce the correct status code
if an invalid limit was specified. The default is currently set both on the
cli and on the daemon side, and it should be only set on one of them.

There is a slight change in behavior; previously, searching with `--limit=0`
would produce an error, but with this change, it's considered the equivalent
of "no limit set" (and using the default).

We could keep the old behavior by passing a pointer (`nil` means "not set"),
but I left that for a follow-up exercise (we may want to pass an actual
config instead of separate arguments, as well as some other things that need
cleaning up).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-18 09:41:56 +01:00
..
cache.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
image.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
image_builder.go remove layerstore indexing by OS (used for LCOW) 2021-06-10 17:49:11 +02:00
image_commit.go remove layerstore indexing by OS (used for LCOW) 2021-06-10 17:49:11 +02:00
image_delete.go daemon/images: remove leftover LCOW platform checks 2022-01-25 12:15:50 +01:00
image_events.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
image_exporter.go remove layerstore indexing by OS (used for LCOW) 2021-06-10 17:49:11 +02:00
image_history.go Merge pull request #43182 from thaJeztah/layer_remove_unused_error 2022-02-17 20:51:45 +01:00
image_import.go daemon/images: remove leftover LCOW platform checks 2022-01-25 12:15:50 +01:00
image_inspect.go Merge pull request #43182 from thaJeztah/layer_remove_unused_error 2022-02-17 20:51:45 +01:00
image_prune.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
image_pull.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
image_push.go remove layerstore indexing by OS (used for LCOW) 2021-06-10 17:49:11 +02:00
image_search.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
image_search_test.go search: un-export registry.DefaultSearchLimit, and fix API status codes 2022-03-18 09:41:56 +01:00
image_tag.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
image_unix.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
image_windows.go remove layerstore indexing by OS (used for LCOW) 2021-06-10 17:49:11 +02:00
images.go Merge pull request #43182 from thaJeztah/layer_remove_unused_error 2022-02-17 20:51:45 +01:00
images_test.go Move cpu variant checks into platform matcher 2021-02-18 16:58:48 +00:00
locals.go goimports: fix imports 2019-09-18 12:56:54 +02:00
service.go Merge pull request #43255 from thaJeztah/imageservice_nologs 2022-03-05 21:23:38 +01:00
store.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
store_test.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00