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/ipn
Brad Fitzpatrick 53cfff109b ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs)
This adds a new ipn.MaskedPrefs embedding a ipn.Prefs, along with a
bunch of "has bits", kept in sync with tests & reflect.

Then it adds a Prefs.ApplyEdits(MaskedPrefs) method.

Then the ipn.Backend interface loses its weirdo SetWantRunning(bool)
method (that I added in 483141094c for "tailscale down")
and replaces it with EditPrefs (alongside the existing SetPrefs for now).

Then updates 'tailscale down' to use EditPrefs instead of SetWantRunning.

In the future, we can use this to do more interesting things with the
CLI, reconfiguring only certain properties without the reset-the-world
"tailscale up".

Updates #1436

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
5 years ago
..
ipnlocal ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
ipnserver cmd/tailscale, ipn/localapi: add "tailscale bugreport" subcommand 5 years ago
ipnstate net/{packet,tstun}: send peerapi port in TSMP pongs 5 years ago
localapi cmd/tailscale, ipn/localapi: add "tailscale bugreport" subcommand 5 years ago
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 6 years ago
backend.go ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
doc.go Move Linux client & common packages into a public repo. 6 years ago
fake_test.go ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
handle.go control, ipn, tailcfg: remove golang.org/x/oauth2 dep, add tailcfg.Oauth2Token 5 years ago
message.go ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
message_test.go control, ipn, tailcfg: remove golang.org/x/oauth2 dep, add tailcfg.Oauth2Token 5 years ago
prefs.go ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
prefs_clone.go types/persist: split controlclient.Persist into a small leaf package 5 years ago
prefs_test.go ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 5 years ago
store.go wgkey: new package 5 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago