spiegel_podman/pkg/api/handlers/compat
Paul Holzinger 4f1d4ae8a0
fix new lint issues from prealloc
Fix a few new issues reported by the linter update.

There is no need to copy the capAdd/capDrop slice in the compat create
endpoint as they are only read and not modified.
For the other code preallocate the slices so we safe memory allocations.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-10 19:45:35 +01:00
..
auth.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
changes.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers.go Deprecate Legacy structs and use port.String() 2026-03-09 11:09:28 +01:00
containers_archive.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_attach.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_create.go fix new lint issues from prealloc 2026-03-10 19:45:35 +01:00
containers_export.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_logs.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_pause.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_prune.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_restart.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_start.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_stats.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_stats_freebsd.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
containers_stats_linux.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
containers_stop.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_top.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
containers_unpause.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
events.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
exec.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
images.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
images_build.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
images_history.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
images_prune.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
images_push.go Deprecate Legacy structs and use port.String() 2026-03-09 11:09:28 +01:00
images_remove.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
images_tag.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
info.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
networks.go api/compat: Backport jsonmessage.JSONProgress.String() 2026-03-09 11:09:28 +01:00
ping.go compat: GET /_ping return Builder-Version: 1 2025-07-31 10:17:52 +02:00
resize.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
secrets.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
system.go Deprecate Legacy structs and use port.String() 2026-03-09 11:09:28 +01:00
types.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
unsupported.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
version.go Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
volumes.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00