podman/pkg/api/server
Valentin Rothberg b028f6aa75 add new libpod/images/$name/resolve endpoint
Podman Desktop [1] is looking into improving the user experience which
requires to know the source of an image.  Consider the user triggers an
image pull and Podman Desktop wants to figure out whether the image name
refers to a Red Hat registry, for instance, to prompt installing the RH
auth extension.

Since the input values of images may be a short name [2], Podman Desktop
has no means to figure out the (potential) source of the image.  Hence,
add a new `/resolve` endpoint to allow external callers to figure out
the (potential) fully-qualified image name of a given value.

With the new endpoint, Podman Desktop can ask Podman directly to resolve
the image name and then make an informed decision whether to prompt the
user to perform certain tasks or not.  This for sure can also be used
for any other registry (e.g., Quay, Docker Hub).

[1] https://github.com/containers/podman-desktop/issues/5771
[2] https://www.redhat.com/sysadmin/container-image-short-names

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-01-31 16:20:16 +01:00
..
idle bump golangci-lint to v1.49.0 2022-10-17 09:19:41 +02:00
doc.go Fix system service manpage name in API Documentation 2023-06-11 14:21:46 -04:00
handler_api.go pkg/api: BufferedResponseWriter flush correctly 2023-06-23 16:51:22 +02:00
handler_logging.go system service --log-level=trace: support hijack 2023-03-14 14:33:52 +01:00
handler_panic.go bump go module to version 4 2022-01-18 12:47:07 +01:00
handler_rid.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
listener_api.go bump golangci-lint to v1.49.0 2022-10-17 09:19:41 +02:00
register_archive.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_auth.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_containers.go [CI:DOCS] compat api: fix formatting syntax 2023-12-07 14:27:47 +01:00
register_distribution.go bump go module to version 4 2022-01-18 12:47:07 +01:00
register_events.go Use 8k buffer to help clients w/ broken parsing 2022-07-29 00:51:44 -05:00
register_exec.go remote: exec: do not leak session IDs on errors 2023-10-19 11:34:36 +02:00
register_generate.go Add generate systemd -e/--env option 2022-09-06 20:17:11 +09:00
register_healthcheck.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_images.go add new libpod/images/$name/resolve endpoint 2024-01-31 16:20:16 +01:00
register_info.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_kube.go remote: fix podman-remote kube play --publish-all 2023-12-29 12:41:54 +09:00
register_manifest.go push, manifest-push: --force-compression must be true with --compression-format 2023-08-28 16:41:13 +05:30
register_monitor.go bump go module to version 4 2022-01-18 12:47:07 +01:00
register_networks.go docs(API): Fix compat network (dis-)connect 2023-10-24 17:37:17 +02:00
register_ping.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_plugins.go bump go module to version 4 2022-01-18 12:47:07 +01:00
register_pods.go top: do not depend on ps(1) in container 2023-07-10 13:32:55 +02:00
register_secrets.go Display secret to user in inpspect 2023-06-28 13:14:49 -04:00
register_swagger.go bump go module to version 4 2022-01-18 12:47:07 +01:00
register_swarm.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
register_system.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_version.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
register_volumes.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
server.go system service: unset NOTIFY_SOCKET 2023-08-24 16:23:01 +02:00