Commit graph

6 commits

Author SHA1 Message Date
bitromortac
cb542a5015
firewall+firewalldb: add SessionDB interface
SessionDB is an interface that gives helper methods for how privacy
mapping should be done. A mock for SessionDB is added to save on some
code repetition, the privacy flags functionality is used in a later
test.
2024-04-25 14:49:45 +02:00
Elle Mouton
73110b6472
multi: give firewallDB access to session ID index 2023-08-30 12:34:29 +02:00
Elle Mouton
95fc0c2011
firewalldb: db logic for the privacy mapper 2023-01-27 06:47:12 +02:00
Elle Mouton
0a9f5458cb
firewalldb: add KVStore CRUD logic 2023-01-27 06:47:11 +02:00
Elle Mouton
704acdf504
firewalldb: add Action CRUD logic
This commit adds a new Action type to the firewalldb package along with
Serialization and Deserialization methods for it. It also adds
ListAction and ListSessionAction methods to the DB which can be used to
paginate through the actions. Various interfaces are also added that
will be used by `rules` to access certain RuleActions.
2023-01-27 06:47:11 +02:00
Elle Mouton
eaffa4a74a
firewalldb+log: add main DB structure 2023-01-27 06:47:11 +02:00