spiegel_podman/cmd/podman/system
Paul Holzinger e50898e1f7
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>
(cherry picked from commit 34de0feda5)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-20 10:55:49 +01:00
..
connection system connection remove: use Args function to validate 2024-07-18 16:37:37 +02:00
check.go Add podman system check for checking storage consistency 2024-06-04 10:00:37 -04:00
connection.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
context.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
df.go update golangci-lint to v1.62.0 2024-11-11 14:21:17 +01:00
dial_stdio.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
events.go rework event code to improve API errors 2024-11-01 18:54:13 +01:00
info.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
locks.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
migrate.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
prune.go Clean up after unexpectedly terminated build 2025-01-27 14:21:27 +01:00
renumber.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
reset.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
reset_machine.go Update connection on removal 2024-09-24 15:46:02 -04:00
reset_machine_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
service.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
service_abi.go server: fix url parsing in info 2024-10-07 12:03:56 +02:00
service_abi_common.go system service: split out cgroups call into linux specific file 2023-12-07 11:26:36 +01:00
service_abi_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
system.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
unshare.go remove trailing comma in example 2024-08-15 11:21:27 -04:00
version.go Add BuildOrigin field to podman info 2025-02-04 15:17:24 -05:00