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/cmd/tailscale/cli
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>
3 months ago
..
ffcomplete all: don't rebind variables in for loops 3 months ago
appcroutes.go appc,*: publish events for route updates and storage (#17392) 3 months ago
bugreport.go cmd/tailscale/cli, derp: use client/local instead of deprecated client/tailscale (#17061) 4 months ago
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
cli.go cmd/tailscale/cli,client,ipn: add appc-routes cli command 3 months ago
cli_test.go cmd/tailscale/cli: remove advertise command (#16592) 5 months ago
configure-jetkvm.go cmd/tailscale/cli: add "configure jetkvm" subcommand 6 months ago
configure-kube.go cmd/tailscale/cli: make configure kubeconfig accept Tailscale Services (#16601) 5 months ago
configure-kube_omit.go cmd/tailscale: define CLI tools to manipulate macOS network and system extensions (#14727) 11 months ago
configure-kube_test.go cmd/tailscale/cli: make configure kubeconfig accept Tailscale Services (#16601) 5 months ago
configure-synology-cert.go feature, net/tshttpproxy: pull out support for using proxies as a feature 3 months ago
configure-synology-cert_test.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
configure-synology.go cmd/tailscale: define CLI tools to manipulate macOS network and system extensions (#14727) 11 months ago
configure.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
configure_apple-all.go cmd/tailscale: define CLI tools to manipulate macOS network and system extensions (#14727) 11 months ago
configure_apple.go cmd/tailscale: fix, test some recent doc inconsistencies 11 months ago
configure_linux-all.go cmd/tailscale/cli: move systray configuration to tailscale configure (#16817) 5 months ago
configure_linux.go cmd/tailscale/cli: move systray configuration to tailscale configure (#16817) 5 months ago
debug-capture.go feature/capture: move packet capture to feature/*, out of iOS + CLI 11 months ago
debug-peer-relay.go client, cmd/tailscale/cli, feature/relayserver, net/udprelay: implement tailscale debug peer-relay-sessions (#17239) 3 months ago
debug-portmap.go feature/portmapper: make the portmapper & its debugging tools modular 3 months ago
debug.go control/controlclient: remove x/net/http2, use net/http 3 months ago
diag.go feature/featuretags: make CLI connection error diagnostics modular 3 months ago
dns-query.go cmd/tailscale: clean up dns --help messages (#16306) 6 months ago
dns-status.go cmd/tailscale: clean up dns --help messages (#16306) 6 months ago
dns.go cmd/tailscale: clean up dns --help messages (#16306) 6 months ago
down.go cmd/tailscale/cli: update tailscale down to accept an optional --reason 11 months ago
drive.go cmd/tailscale: omit the `drive` subcommand in MacOS GUI apps 3 months ago
exitnode.go cmd/tailscale/cli: show last seen time on status command (#16588) 3 months ago
exitnode_test.go cmd/tailscale: format empty cities and countries as hyphens (#16495) 6 months ago
file.go syncs: delete WaitGroup and use sync.WaitGroup.Go in Go 1.25 4 months ago
funnel.go all: add ts_omit_serve, start making tailscale serve/funnel be modular 3 months ago
id-token.go cmd/tailscale: add shell tab-completion 2 years ago
ip.go cmd/tailscale/cli: prefix all --help usages with "tailscale ...", some tidying 2 years ago
licenses.go cmd/tailscale/cli: prefix all --help usages with "tailscale ...", some tidying 2 years ago
login.go cmd/tailscale/cli: prefix all --help usages with "tailscale ...", some tidying 2 years ago
logout.go cmd/tailscale/cli,ipn/ipnlocal: restrict logout when AlwaysOn mode is enabled 6 months ago
maybe_syspolicy.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 4 months ago
metrics.go cmd/tailscale: fix, test some recent doc inconsistencies 11 months ago
nc.go cmd/tailscale: add shell tab-completion 2 years ago
netcheck.go feature/portmapper: make the portmapper & its debugging tools modular 3 months ago
network-lock.go util/prompt: add a default and take default in non-interactive cases 3 months ago
ping.go cmd/tailscale/cli, derp: use client/local instead of deprecated client/tailscale (#17061) 4 months ago
risks.go util/prompt: add a default and take default in non-interactive cases 3 months ago
serve_legacy.go all: add ts_omit_serve, start making tailscale serve/funnel be modular 3 months ago
serve_legacy_test.go cmd/tailscale/cli, derp: use client/local instead of deprecated client/tailscale (#17061) 4 months ago
serve_v2.go util/prompt: add a default and take default in non-interactive cases 3 months ago
serve_v2_test.go cmd/tailscale/cli: add advertise command to advertise a node as service proxy to tailnet (#16620) 5 months ago
set.go feature/clientupdate: move clientupdate to a modular feature, disabled for tsnet 3 months ago
set_test.go cmd/tailscale/cli: prevent all dup flags, not just strings 9 months ago
ssh.go cmd/tailscale: allow SSH to IPs or DNS names without MagicDNS (#16591) 5 months ago
ssh_exec.go all: update copyright and license headers 3 years ago
ssh_exec_js.go all: update copyright and license headers 3 years ago
ssh_exec_windows.go all: update copyright and license headers 3 years ago
ssh_unix.go types/logger, cmd/tailscale/cli: flesh out, simplify some non-unix build tags 2 years ago
status.go cmd/tailscale/cli: use tabwriter for tailscale status (#16596) 3 months ago
switch.go cmd/tailscale/cli: use helper function for matching profiles 3 months ago
syspolicy.go util/syspolicy: finish adding ts_omit_syspolicy build tags, tests 4 months ago
systray.go cmd/tailscale/cli: move systray configuration to tailscale configure (#16817) 5 months ago
systray_omit.go cmd/tailscale: add systray subcommand on Linux builds 5 months ago
up.go cmd/tailscale/cli: fix race condition in `up --force-reauth` 3 months ago
up_test.go cmd/tailscale: shrink QR codes using half blocks (#17084) 3 months ago
update.go util/prompt: add a default and take default in non-interactive cases 3 months ago
version.go cmd/tailscale/cli: prefix all --help usages with "tailscale ...", some tidying 2 years ago
web.go cmd/tailscale, ipn/ipnlocal: add ts_omit_webclient 4 months ago
web_test.go client/web: extract web client from cli package 2 years ago
whois.go proxymap, various: distinguish between different protocols 2 years ago