spiegel_podman/pkg/api/handlers
Kir Kolyshkin 7f7b35356f 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>
2026-05-21 13:09:42 -07:00
..
compat Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
grpc RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
libpod Merge pull request #28673 from kyounghunJang/feat/add-volume-prune-dry-run 2026-05-18 19:26:18 +02:00
swagger RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
utils API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
decoder.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00