Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Pratyay360/podman-ts/llms.txt
Use this file to discover all available pages before exploring further.
EventsManager (exposed as client.events) gives you a live stream of Podman service events as an async generator. Because it uses stream: true under the hood, you iterate over events with a standard for await...of loop — there is no separate stream() method.
list(options?)
GET /events request and yields one item per newline-delimited event. When the generator is exhausted the connection has closed on the server side.
EventsListOptions
| Option | Type | Description |
|---|---|---|
since | Date | number | Return events that occurred after this timestamp. Accepts a Date object or a Unix timestamp (seconds). |
until | Date | number | Stop returning events after this timestamp. |
filters | Record<string, string | string[]> | Key/value filters forwarded to the Podman API (e.g. { type: "container" }). |
decode | boolean | When true, each yielded value is a parsed Record<string, unknown>. Otherwise a raw JSON string is yielded. |
Basic usage
Iterate over all incoming events and print each one as a parsed object:Filtering events by type
Pass afilters map to narrow the stream. The keys and values mirror the Podman API filter syntax:
Raw string mode
Omitdecode (or set it to false) to receive the raw newline-delimited JSON strings. This is useful when you want to forward events to another sink without the overhead of parsing:
There is no separate
stream() method on EventsManager. Always use for await...of client.events.list() to consume the event stream.