1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-28 10:51:44 +01:00
juanfont.headscale/hscontrol/policy/v2
Kristoffer Dalby 9d236571f4 state/nodestore: in memory representation of nodes
Initial work on a nodestore which stores all of the nodes
and their relations in memory with relationship for peers
precalculated.

It is a copy-on-write structure, replacing the "snapshot"
when a change to the structure occurs. It is optimised for reads,
and while batches are not fast, they are grouped together
to do less of the expensive peer calculation if there are many
changes rapidly.

Writes will block until commited, while reads are never
blocked.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-09-09 09:40:00 +02:00
..
filter_test.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
filter.go fix: allow all traffic if acls field is omited from the policy 2025-08-18 16:13:14 +02:00
policy_test.go fix: allow all traffic if acls field is omited from the policy 2025-08-18 16:13:14 +02:00
policy.go state/nodestore: in memory representation of nodes 2025-09-09 09:40:00 +02:00
types_test.go Fix typos 2025-07-21 12:06:07 +02:00
types.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
utils_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
utils.go policy/v2: error on missing or zero port (#2606) 2025-05-16 17:30:47 +02:00