mirror of
https://github.com/tailscale/tailscale.git
synced 2026-09-22 19:45:15 -04: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 <willh@tailscale.com> Co-authored-by: Will Hannah <wph@Wills-Virtual-Machine.local>
14 lines
509 B
Go
14 lines
509 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by gen.go; DO NOT EDIT.
|
|
|
|
//go:build !ts_omit_favorites
|
|
|
|
package buildfeatures
|
|
|
|
// HasFavorites is whether the binary was built with support for modular feature "Locally-pinned favorite devices, exit nodes, and services".
|
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_favorites" build tag.
|
|
// It's a const so it can be used for dead code elimination.
|
|
const HasFavorites = true
|