Commit graph

18 commits

Author SHA1 Message Date
ppom
048ee70841
Add time to Exec messages, so that plugin actions don't have to calc this 2025-11-27 12:00:00 +01:00
ppom
b292faa536
Provide a correct implementation of user-configured match line parsing 2025-11-27 12:00:00 +01:00
ppom
41934070b9
shutdown: permit ShutdownController to be cloned
When multiple tasks can ask to quit
2025-11-20 12:00:00 +01:00
ppom
e176520d32
Move shutdown module to reaction-plugin and use in cluster 2025-11-15 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
ca77e8114f
Fix reaction-plugin doctests 2025-11-15 12:00:00 +01:00
ppom
ee5b43851b
Move parse_duration to reaction-plugin and fix dependency tree 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
26a87e0066
Better doc and errors 2025-10-30 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
4dcb35d116
plugin: add simple way to store small data for plugins 2025-10-22 12:00:00 +02: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