Commit graph

12 commits

Author SHA1 Message Date
ppom
d7c17b8f9f
Add tests to virtual and use reaction-plugin's PatternLine
Those tests permitted to find the bug that led me to create PatternLine
Also add a serde option to deny extra keys in virtual action's config
2025-11-27 12:00:00 +01:00
ppom
8e54e45409
cluster: add a lot of DEBUG msgs, Show trait to ease logging 2025-11-25 12:00:00 +01:00
ppom
f5ca9099a8
plugin: Stream plugins now pass time information along their lines
This will permit the cluster to accurately receive older-than-immediate
information, and it will permit potential log plugins (journald?) to go
back in time at startup.
2025-11-15 12:00:00 +01:00
ppom
20d62c8856
Fixed communication error: do not use serde_json::Value
So maybe serde_json's Value can't be serialized with postbag.
Recreated my own Value that can be converted from and to serde_json's.

removed one useless tokio::spawn.
2025-11-02 12:00:00 +01:00
ppom
9608653917
fmt, clippy, tests, fix some tests after startup refacto 2025-10-30 12:00:00 +01:00
ppom
45ccf1ea6b
WIP allow plugin to print error to stderr and capture them
I have a race condition where reaction quits before printing process' stderr.
This will be the occasion to rework (again) reaction's daemon startup
2025-10-30 12:00:00 +01:00
ppom
3671cd8af5
Cluster plugin init
- Remove PersistData utility
- Provide plugins a state directory instead, by starting them inside.
- Store the secret key as a file inside this directory.
- Use iroh's crate for base64 encoding, thus removing one dependency.
- Implement plugin's stream_impl and action_impl functions,
  creating all necessary data structures.
2025-10-27 12:00:00 +01:00
ppom
7c5c5ff757
Add PersistData to trait 2025-10-20 12:00:00 +02:00
ppom
b9550e3acb
plugin protocol: add manifest with version 2025-10-20 12:00:00 +02:00
ppom
fb202977c4
WIP systemd support
The logic seems to be fine.
Still need to think what security defaults are pertinent.
2025-10-11 12:00:00 +02:00
ppom
635d1a052d
plugin improvements
- fix panic of channel(0)
- cleaner plugin interface with one level of Result
- standalone metadata for stream plugins
- new test for plugin virtual
2025-10-10 12:00:00 +02:00
ppom
550606801a
First shot of "virtual stream" plugin 2025-10-03 12:00:00 +02:00