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:
Andrew Dunham
2024-06-26 11:29:53 -04:00
parent 8487fd2ec2
commit 0323dd01b2
6 changed files with 41 additions and 12 deletions

View File

@ -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