spiegel_podman/cmd/podman/system
Paul Holzinger 2a16e04843
system df: improve json output code
The current code modifies a global variable which works but is bad
design since it could be uses elsewhere. Since we just exit after the df
command this is not an issue right now but it could become one in the
future.

A better fix is to implement a custom `MarshalJSON()` method on the
struct which will be called if this struct will be marshaled.

[NO NEW TESTS NEEDED]
Fixes some changes from 24b1e81c5d, the test should from there should
still pass.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-01-03 18:12:06 +01:00
..
connection podman machine ssh handling 2022-09-26 18:35:01 -04:00
connection.go Add podman machine events 2022-05-03 13:49:01 -07:00
context.go Add support for podman context as alias to podman system connection 2022-09-15 08:17:15 -04:00
df.go system df: improve json output code 2023-01-03 18:12:06 +01:00
dial_stdio.go Fix stutters 2022-09-10 07:52:00 -04:00
events.go Add podman system events alias to podman events 2022-11-11 12:57:49 -05:00
info.go podman info: use report.Formatter over Template 2022-09-13 10:33:14 +02:00
migrate.go enable gocritic linter 2022-04-26 18:12:22 +02:00
prune.go Add podman system prune --external 2022-12-05 18:09:21 +01:00
renumber.go enable gocritic linter 2022-04-26 18:12:22 +02:00
reset.go Update system reset warning message to warn against deletion of all volumes 2022-09-05 19:34:04 +02:00
reset_machine.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
reset_machine_unsupported.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
service.go use cached containers.conf 2022-10-21 14:03:14 +02:00
service_abi.go podman service: close duplicated /dev/null fd 2022-12-20 17:17:37 +01:00
system.go bump go module to version 4 2022-01-18 12:47:07 +01:00
unshare.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
version.go podman version: use report.Formatter over Template 2022-09-13 10:33:15 +02:00