mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 10:41:19 -08:00
types/netmap,tailcfg: update documentation for Services cap
Updates tailscale/corp#40052 Signed-off-by: Adriano Sela Aviles <[email protected]>
This commit is contained in:
1 parent
e2fa9ff140
commit
4ce1643929
2 files changed
+8
-4
No files matched your search
@@ -147,8 +147,10 @@ func (nm *NetworkMap) GetIPVIPServiceMap() IPServiceMappings {
|
||||
}
|
||||
|
||||
// Services returns the Services visible (accessible) to this node,
|
||||
// decoded from [tailcfg.NodeAttrPrefixServices]+serviceName entries in the
|
||||
// self node's CapMap. Returns nil if nm is nil or SelfNode is invalid.
|
||||
// decoded from [tailcfg.NodeAttrPrefixServices] entries in the self node's
|
||||
// CapMap. The returned map is keyed by [tailcfg.ServiceDetails.Name], which is
|
||||
// the canonical service name; the NodeCapMap key suffix is opaque and must not
|
||||
// be parsed or relied upon. It returns nil if nm is nil or SelfNode is invalid.
|
||||
//
|
||||
// TODO(adrianosela): cache the result of decoding the capmap so
|
||||
// we don't have to decode it multiple times after each netmap update.
|
||||
|
||||
Reference in new issue
Block a user