WS-A: systemd D-Bus source, example and tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
2687ef5c33
commit
5e7a323020
4 files changed
+292
-24
No files matched your search
@@ -27,13 +27,13 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
|
||||
## Phase 1 — Sources + auth (parallel)
|
||||
|
||||
### WS-A systemd · [card](plan/workstreams/WS-A-systemd.md)
|
||||
- [ ] **A1** Shared system-bus `zbus::Connection` + `ManagerProxy`
|
||||
- [ ] **A2** `list_units(state)` mapped to `UnitSummary`
|
||||
- [ ] **A3** `list_timers()` via `*.timer` units + `TimerProxy` props (no `ListTimers` method exists)
|
||||
- [ ] **A4** `unit_status(name)`: `GetUnit` first, `LoadUnit` as fallback. `Unit` props always, `Service` props for `.service` only.
|
||||
- [ ] **A5** Unit-name validation. `NoSuchUnit` maps to `NotFound`.
|
||||
- [ ] **A6** `examples/systemd_dump.rs` prints JSON from the live bus
|
||||
- [ ] **A7** Unit tests for timestamp conversion and property mapping
|
||||
- [x] **A1** Shared system-bus `zbus::Connection` + `ManagerProxy`
|
||||
- [x] **A2** `list_units(state)` mapped to `UnitSummary`
|
||||
- [x] **A3** `list_timers()` via `*.timer` units + `TimerProxy` props (no `ListTimers` method exists)
|
||||
- [x] **A4** `unit_status(name)`: `GetUnit` first, `LoadUnit` as fallback. `Unit` props always, `Service` props for `.service` only.
|
||||
- [x] **A5** Unit-name validation. `NoSuchUnit` maps to `NotFound`.
|
||||
- [x] **A6** `examples/systemd_dump.rs` prints JSON from the live bus
|
||||
- [x] **A7** Unit tests for timestamp conversion and property mapping
|
||||
|
||||
### WS-B journal · [card](plan/workstreams/WS-B-journal.md)
|
||||
- [ ] **B1** All sd-journal access inside `spawn_blocking`. Optional namespace, depending on the spike.
|
||||
|
||||
Reference in new issue
Block a user