tailscale/ipn/localapi
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>
2022-11-07 21:07:22 -08:00
..
cert_test.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
cert.go ipn/localapi: refactor some cert code in prep for a move 2022-11-07 21:07:22 -08:00
disabled_stubs.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
localapi.go cmd/tailscale, ipn/ipnlocal: add debug command to write to StateStore for dev 2022-11-07 15:34:43 -08:00
profile.go all: remove old +build tags 2022-11-04 07:25:42 -07:00