spiegel_podman/pkg/api/handlers/compat
Kir Kolyshkin a94d273a8f
Replace os.Is* error checks with errors.Is
Using os.Is{Exist,NotExist,Permission} checks is not recommended in the
new code (see official documentation). While using it in the existing
code is OK, it may still result in a subtle errors later (for a specific
example of that, see [1]).

Replace those with errors.Is.

Generated by:

	gofmt -r 'os.IsExist(a) -> errors.Is(a, os.ErrExist)' -w .
	gofmt -r 'os.IsNotExist(a) -> errors.Is(a, os.ErrNotExist)' -w .
	gofmt -r 'os.IsPermission(a) -> errors.Is(a, os.ErrPermission)' -w .
	goimports -w .
	git diff vendor test/tools/vendor | patch -p1 -R

[1]: https://github.com/opencontainers/runc/pull/5061
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 7f7b35356f)

[Added extra replacements manually that were only in the 5.8 tree]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-04 19:38:16 +02:00
..
auth.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
changes.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
containers_archive.go Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
containers_attach.go fix races in the HTTP attach API 2024-08-27 15:00:08 +02:00
containers_create.go Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
containers_export.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_logs.go fix(logs): add tests for nanosecond precision in log timestamps 2026-02-06 13:46:36 -05:00
containers_pause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_restart.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_start.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
containers_stats_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
containers_stats_linux.go compat: Deduplicate the Linux and FreeBSD containers/stats helpers 2025-09-02 16:17:11 +00:00
containers_stop.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_top.go Match output of Compat Top API to Docker 2024-09-17 11:34:22 -04:00
containers_unpause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
events.go fix new lint errors from the docker update 2025-06-27 16:35:40 +02:00
exec.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
images.go [compat api] Remove ContainerConfig field 2025-09-27 20:50:30 +10:00
images_build.go use chrootarchive over plain archive package 2026-04-09 14:23:52 +02:00
images_history.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_prune.go vendor: update docker v28 and c/{common,image} 2025-03-11 16:24:14 +01:00
images_push.go fix: set header fields before response status code to prevent missing fields 2025-09-08 09:06:36 +02:00
images_remove.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
images_tag.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
info.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
networks.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
ping.go compat: GET /_ping return Builder-Version: 1 2025-07-31 10:17:52 +02:00
resize.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
secrets.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
system.go compat: remove deprecated VirtualSize 2025-08-01 11:46:23 +02:00
types.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
unsupported.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
version.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
volumes.go vendor: update docker v28 and c/{common,image} 2025-03-11 16:24:14 +01:00