spiegel_podman/cmd/podman/system
Chris Evich e89234aba2
Fix podman system events command and event template handling
Add systemEventsCommand to support 'podman system events' as an alias
for 'podman events'. This fixes the 'unknown shorthand flag: f' error
when using 'podman system events -f' in tests prior to this commit.

Fix event template handling by changing report.OriginUser to
report.OriginUnknown to prevent the template parser from trying to
iterate over the event struct. This fixes template errors like
'range can't iterate over' for templates like {{.ID}}--{{.Image}}
and {{.Attributes.xxx}} as observed in tests prior to this commit.

Update event journal reading to set Attributes directly on the Event
struct (since Details is embedded) and add support for PodID and
ContainerInspectData fields in the Details struct.

Update event loop to use select statement for proper channel handling
and error propagation.

Assisted-by: Cursor <Auto>
Signed-off-by: Chris Evich <cevich@redhat.com>
2026-03-30 15:13:33 -04:00
..
connection cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
connection.go Add podman machine events 2022-05-03 13:49:01 -07:00
df.go Podman system df JSON format outputs Size and Reclaimable 2022-07-05 07:38:08 -04:00
dial_stdio.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
events.go Fix podman system events command and event template handling 2026-03-30 15:13:33 -04:00
info.go podman info: hide --debug 2022-08-10 16:46:05 -04:00
migrate.go enable gocritic linter 2022-04-26 18:12:22 +02:00
prune.go podman system prune support prune unused networks 2022-06-14 14:04:03 +09:00
renumber.go enable gocritic linter 2022-04-26 18:12:22 +02:00
reset.go Improve robustness of podman system reset 2022-06-03 12:54:08 -04: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 Fix compilation errors for v4.4.1-rhel compatibility 2026-03-30 14:52:52 -04:00
service_abi.go podman: move MaybeMoveToSubCgroup to utils/ 2022-07-26 13:08:00 -04: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 shell completion --format: use structs by reference 2022-04-28 18:12:17 +02:00