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/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>
3 years ago
..
cert.go ipn/localapi: refactor some cert code in prep for a move 3 years ago
cert_test.go all: remove old +build tags 3 years ago
disabled_stubs.go all: remove old +build tags 3 years ago
localapi.go cmd/tailscale, ipn/ipnlocal: add debug command to write to StateStore for dev 3 years ago
profile.go all: remove old +build tags 3 years ago