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/types
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
..
appctype appc,*: publish events for route updates and storage (#17392) 2 months ago
bools types/bools: fix doc typo (#15021) 10 months ago
dnstype types/dnstype: delete unused func, move other one to its sole caller 2 months ago
empty all: update copyright and license headers 3 years ago
flagtype all: update copyright and license headers 3 years ago
geo types/geo: add geo.Point and its associated units (#16583) 5 months ago
iox types/iox: add function types for Reader and Writer (#14366) 12 months ago
ipproto all: use Go 1.22 range-over-int 2 years ago
jsonx types/jsonx: add package for json/v2 helpers (#15756) 7 months ago
key types/key: add IsZero method to HardwareAttestationKey (#17370) 2 months ago
lazy types/lazy: add lazy.GMap: a map of lazily computed GValues (#16532) 5 months ago
logger types/logger: release ArgWriter destination after use 7 months ago
logid types/logid: add Add method (#12478) 1 year ago
mapx types/mapx, ipn/ipnext: add ordered map, akin to set.Slice 7 months ago
netlogtype all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
netmap ipn/ipnlocal, types: plumb tailnet display name cap through to network profile (#17045) 3 months ago
nettype wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 3 years ago
opt types/opt: de-weird the API a bit with new True and False consts 2 months ago
persist cmd/viewer: add field comments to generated view methods 3 months ago
prefs cmd/viewer: add field comments to generated view methods 3 months ago
preftype cmd/tailscaled,*: add start of configuration file support 2 years ago
ptr all: update copyright and license headers 3 years ago
result types/result, util/lineiter: add package for a result type, use it 1 year ago
structs all: update copyright and license headers 3 years ago
tkatype types/tkatype: add test for MarshaledSignature's JSON format 2 years ago
views types/views: add min/max helpers to views.Slice 4 months ago