1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-14 11:17:33 +02:00
juanfont.headscale/hscontrol/types
Kristoffer Dalby 73023c2ec3 all: use immutable node view in read path
This commit changes most of our (*)types.Node to
types.NodeView, which is a readonly version of the
underlying node ensuring that there is no mutations
happening in the read path.

Based on the migration, there didnt seem to be any, but the
idea here is to prevent it in the future and simplify other
new implementations.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-07-07 21:28:59 +01:00
..
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
config_test.go config: disallow same server url and base_domain (#2544) 2025-04-23 16:24:38 +02:00
config.go remove unneeded check (#2658) 2025-07-04 15:47:01 +00:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node_test.go Make matchers part of the Policy interface (#2514) 2025-05-01 07:06:30 +02:00
node.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key_test.go state: introduce state 2025-06-24 07:58:54 +02:00
preauth_key.go state: introduce state 2025-06-24 07:58:54 +02:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
types_clone.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
types_view.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
users_test.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
users.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
version.go add git hash to binary, print on startup (#2415) 2025-02-07 13:49:34 +01:00