tailscale/wgengine/filter
Brad Fitzpatrick 1e2e319e7d util/slicesx: add MapKeys and MapValues from golang.org/x/exp/maps
Importing the ~deprecated golang.org/x/exp/maps as "xmaps" to not
shadow the std "maps" was getting ugly.

And using slices.Collect on an iterator is verbose & allocates more.

So copy (x)maps.Keys+Values into our slicesx package instead.

Updates #cleanup
Updates #12912
Updates #14514 (pulled out of that change)

Change-Id: I5e68d12729934de93cf4a9cd87c367645f86123a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2025-01-03 10:48:31 -08:00
..
filtertype wgengine/filter: support FilterRules matching on srcIP node caps [capver 100] 2024-06-20 12:27:04 -07:00
testdata wgengine/filter: add filter benchmark 2024-06-15 20:47:34 -07:00
filter_test.go util/slicesx: add MapKeys and MapValues from golang.org/x/exp/maps 2025-01-03 10:48:31 -08:00
filter.go wgengine/filter: actually use the passed CapTestFunc [capver 109] 2024-11-19 19:18:35 +00:00
match.go wgengine/filter: support FilterRules matching on srcIP node caps [capver 100] 2024-06-20 12:27:04 -07:00
tailcfg.go wgengine/filter: support FilterRules matching on srcIP node caps [capver 100] 2024-06-20 12:27:04 -07:00