tailscale/client/local
Brad Fitzpatrick 89a78dc9b7 client/local, ipn/localapi, ipn/ipnlocal: add PeerByID
Add a narrow LocalAPI accessor and matching client/LocalBackend method
to look up a single peer's current full [tailcfg.Node] by NodeID, in
O(1) time on the daemon side, without fetching the entire netmap.

Useful for callers that need the latest state of a single peer (e.g.
in response to a peer-mutation event on the IPN bus) without paying
for a full netmap fetch.

Updates #12542

Change-Id: I1cb2d350e6ad846a5dabc1f5368dfc8121387f7c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-05-01 06:20:46 -07:00
..
cert.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debugportmapper.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
local_test.go net/tsdial, ipn/localapi, client/local: let clients dial non-Tailscale addresses directly 2026-04-27 09:33:27 -07:00
local.go client/local, ipn/localapi, ipn/ipnlocal: add PeerByID 2026-05-01 06:20:46 -07:00
serve.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
syspolicy.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailnetlock.go tka: refer consistently to "DisablementValues" 2026-04-01 19:09:22 +01:00