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 9be8d15979 ipn/localapi: refactor some cert code in prep for a move
I want to move the guts (after the HTTP layer) of the certificate
fetching into the ipnlocal package, out of localapi.

As prep, refactor a bit:

* add a method to do the fetch-from-cert-or-as-needed-with-refresh,
  rather than doing it in the HTTP hander

* convert two methods to funcs, taking the one extra field (LocalBackend)
  then needed from their method receiver. One of the methods needed
  nothing from its receiver.

This will make a future change easier to reason about.

Change-Id: I2a7811e5d7246139927bb86e7db8009bf09b3be3
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
ipnlocal cmd/tailscale, ipn/ipnlocal: add debug command to write to StateStore for dev 2 years ago
ipnserver all: remove old +build tags 2 years ago
ipnstate cmd/tailscale: add emoji for illumos in status subcommand 2 years ago
localapi ipn/localapi: refactor some cert code in prep for a move 2 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store all: remove old +build tags 2 years ago
backend.go ipn: add missing check for nil Notify.Prefs 2 years ago
doc.go Move Linux client & common packages into a public repo. 5 years ago
fake_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2 years ago
ipn_clone.go cmd/tailscale/cli: add backwards compatibility 'up' processing for legacy client 2 years ago
ipn_view.go ipn/prefs: add views 2 years ago
message.go all: gofmt for Go 1.19 2 years ago
message_test.go ipn: remove handle.go 2 years ago
prefs.go cmd/tailscale/cli: add beginnings of `tailscale set` 2 years ago
prefs_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2 years ago
store.go wgengine/magicsock: make debug-level stuff not logged by default 2 years ago