proxmox/proxmox-notify
Lukas Wagner c1a3505e51 notify: add PVE/PBS context
This commit moves PVEContext from `proxmox-perl-rs` into the
`proxmox-notify` crate, since we now also need to access it from
`promxox-mail-forward`. The context is now hidden behind a feature
flag `pve-context`, ensuring that we only compile it when needed.

This commit adds PBSContext, since we now require it for
`proxmox-mail-forward`. Some of the code for PBSContext comes
from `proxmox-mail-forward`.

This commit also changes the global context from being stored in a
`once_cell` to a regular `Mutex`, since we now need to set/reset
the context in `proxmox-mail-forward`.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-17 08:31:36 +01:00
..
debian bump proxmox-notify to 0.2.0 2023-07-28 11:56:56 +02:00
examples notify: factor out notification content into its own type 2023-11-17 08:31:36 +01:00
src notify: add PVE/PBS context 2023-11-17 08:31:36 +01:00
Cargo.toml notify: add PVE/PBS context 2023-11-17 08:31:36 +01:00