tailscale/ipn/localapi
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
debug.go ipn/ipnlocal, all: split LocalBackend.NetMap into NetMapNoPeers / NetMapWithPeers 2026-04-30 11:14:06 -07:00
debugderp.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
disabled_stubs.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
localapi_drive.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
localapi_test.go client/local, ipn/localapi, ipn/ipnlocal: add PeerByID 2026-05-01 06:20:46 -07:00
localapi.go client/local, ipn/localapi, ipn/ipnlocal: add PeerByID 2026-05-01 06:20:46 -07:00
pprof.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
serve.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
syspolicy_api.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailnetlock.go ipn,tka: improve Tailnet Lock logs 2026-04-01 17:08:12 +01:00