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/client/local
M. J. Fromberger 127a967207
appc,*: publish events for route updates and storage (#17392)
Add and wire up event publishers for these two event types in the AppConnector.
Nothing currently subscribes to them, so this is harmless. Subscribers for
these events will be added in a near-future commit.

As part of this, move the appc.RouteInfo type to the types/appctype package.
It does not contain any package-specific details from appc. Beside it, add
appctype.RouteUpdate to carry route update event state, likewise not specific
to appc.  Update all usage of the appc.* types throughout to use appctype.*
instead, and update depaware files to reflect these changes.

Add a Close method to the AppConnector to make sure the client gets cleaned up
when the connector is dropped (we re-create connectors).

Update the unit tests in the appc package to also check the events published
alongside calls to the RouteAdvertiser.

For now the tests still rely on the RouteAdvertiser for correctness; this is OK
for now as the two methods are always performed together.  In the near future,
we need to rework the tests so not require that, but that will require building
some more test fixtures that we can handle separately.

Updates #15160
Updates #17192

Change-Id: I184670ba2fb920e0d2cb2be7c6816259bca77afe
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2 months ago
..
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
debugportmapper.go feature/portmapper: make the portmapper & its debugging tools modular 3 months ago
local.go appc,*: publish events for route updates and storage (#17392) 2 months ago
local_test.go nettest, *: add option to run HTTP tests with in-memory network 8 months ago
serve.go all: add ts_omit_serve, start making tailscale serve/funnel be modular 3 months ago
syspolicy.go util/syspolicy: finish adding ts_omit_syspolicy build tags, tests 3 months ago
tailnetlock.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago