tailscale/types
Marwan Sulaiman 2dc0645368 ipn/ipnlocal,cmd/tailscale: persist tailnet name in user profile
This PR starts to persist the NetMap tailnet name in SetPrefs so that tailscaled
clients can use this value to disambiguate fast user switching from one tailnet
to another that are under the same exact login. We will also try to backfill
this information during backend starts and profile switches so that users don't
have to re-authenticate their profile. The first client to use this new
information is the CLI in 'tailscale switch -list' which now uses text/tabwriter
to display the ID, Tailnet, and Account. Since account names are ambiguous, we
allow the user to pass 'tailscale switch ID' to specify the exact tailnet they
want to switch to.

Updates #9286

Signed-off-by: Marwan Sulaiman <marwan@tailscale.com>
2023-11-17 17:00:11 -05:00
..
appctype types/appctype: correct app-connector cap name in documentation 2023-11-15 09:47:24 -08:00
dnstype types/dnstype: update the usage documentation on dnstype.Resolver 2023-11-03 09:01:11 -07:00
empty all: update copyright and license headers 2023-01-27 15:36:29 -08:00
flagtype all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipproto types/ipproto: import and test string parsing for ipproto 2023-10-11 18:56:33 -07:00
key types/key: update some doc strings for public key serialization 2023-09-27 14:04:33 -07:00
lazy types/lazy: helpers for lazily computed values 2023-02-10 20:59:58 -08:00
logger types/logger: add TestLogger 2023-08-30 20:23:03 -07:00
logid all: implement AppendText alongside MarshalText (#9207) 2023-09-01 18:15:19 -07:00
netlogtype all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netmap ipn/ipnlocal,cmd/tailscale: persist tailnet name in user profile 2023-11-17 17:00:11 -05:00
nettype wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 2023-04-15 13:40:15 -07:00
opt types/opt: use switch in Bool.UnmarshalJSON (#9140) 2023-08-29 13:12:49 -07:00
persist types/persist: drop duplicated Persist.LoginName 2023-08-08 13:43:37 -06:00
preftype cmd/tailscaled,*: add start of configuration file support 2023-10-16 10:40:27 -07:00
ptr all: update copyright and license headers 2023-01-27 15:36:29 -08:00
structs all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tkatype types/tkatype: add test for MarshaledSignature's JSON format 2023-08-19 19:34:18 -07:00
views types/views: add SliceContainsFunc like slices.ContainsFunc 2023-09-18 16:09:59 +01:00