mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
Let clients pin favorite devices, exit nodes, and services so GUIs can surface & change them. Pins are stored per login profile in the new favorites feature module, keyed per category; devices and exit nodes by StableNodeID, services by ServiceName. The item types live in a leaf package feature/favorites/pintype, keeping them out of the core ipn hierarchy. Each category has its own type (pintype.Device, pintype.ExitNode, pintype.Service). Exposed over LocalAPI at GET/POST /localapi/v0/pins, where POST replaces only the categories named in the request so a client can update one category without clobbering the others. Pins are local to the device and are not synced across a user's devices. updates tailscale/corp#44836 Signed-off-by: Will Hannah <[email protected]> Co-authored-by: Will Hannah <[email protected]>
9 lines
184 B
Go
9 lines
184 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !ts_omit_favorites
|
|
|
|
package condregister
|
|
|
|
import _ "tailscale.com/feature/favorites"
|