ci: enable checklocks workflow for specific packages
This turns the checklocks workflow into a real check, and adds annotations to a few basic packages as a starting point. Updates #12625 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I2b0185bae05a843b5257980fc6bde732b1bdd93f
This commit is contained in:
@ -19,7 +19,12 @@ import (
|
||||
// given localhost:port corresponds to.
|
||||
type Mapper struct {
|
||||
mu sync.Mutex
|
||||
m map[string]map[netip.AddrPort]netip.Addr // proto ("tcp", "udp") => ephemeral => tailscale IP
|
||||
|
||||
// m holds the mapping from localhost IP:ports to Tailscale IPs. It is
|
||||
// keyed first by the protocol ("tcp" or "udp"), then by the IP:port.
|
||||
//
|
||||
// +checklocks:mu
|
||||
m map[string]map[netip.AddrPort]netip.Addr
|
||||
}
|
||||
|
||||
// RegisterIPPortIdentity registers a given node (identified by its
|
||||
|
Reference in New Issue
Block a user