spiegel_podman/cmd/podman/containers
Paul Holzinger 34de0feda5
cmd/podman: refactor Context handling
The PodmanOptionsKey is never used anywhere so it is pointless to add
this. Second having several functions to return the same context makes
no sense so fold them all into one. Lastly create the context once and
always return the same one instead of having to nil check each time.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-12 14:01:10 +01:00
..
attach.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
checkpoint.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
cleanup.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
clone.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
commit.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
container.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
cp.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
create.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
diff.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
exists.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
export.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
init.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
inspect.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
kill.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
list.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
logs.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
mount.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
pause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
port.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
prune.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
ps_test.go ps: fix display of exposed ports 2024-10-23 15:03:30 +02:00
rename.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
restart.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
restore.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
rm.go rm --force work for more than one arg 2024-04-04 17:47:28 +02:00
run.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
runlabel.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
start.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
stats.go utils: drop conversion float->string->float 2024-03-18 23:06:06 +01:00
stop.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
top.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
unmount.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
unpause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
update.go Fix device limitations in podman-remote update on remote systems 2024-12-09 17:35:56 +01:00
wait.go Bump Go module to v5 2024-02-08 09:35:39 -05:00