You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/feature
Nick Khyl 66371f392a feature,ipn/ipnlocal: add profileManager.StateChangeHook
We update profileManager to allow registering a single state (profile+prefs) change hook.
This is to invert the dependency between the profileManager and the LocalBackend, so that
instead of LocalBackend asking profileManager for the state, we can have profileManager
call LocalBackend when the state changes.

We also update feature.Hook with a new (*feature.Hook).GetOk method to avoid calling both
IsSet and Get.

Updates tailscale/corp#28014
Updates #12614

Signed-off-by: Nick Khyl <nickk@tailscale.com>
7 months ago
..
capture feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago
condregister feature/taildrop: start moving Taildrop out of LocalBackend 8 months ago
relayserver ipn/ipnext: remove some interface indirection to add hooks 7 months ago
taildrop ipn/{ipnext,ipnlocal}: add a SafeBackend interface 7 months ago
tap net/tstun: move TAP support out to separate package feature/tap 10 months ago
wakeonlan feature/*: make Wake-on-LAN conditional, start supporting modular features 10 months ago
feature.go feature,ipn/ipnlocal: add profileManager.StateChangeHook 7 months ago