tailscale/util/syspolicy/source
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
..
env_policy_store_test.go util/syspolicy/source: put EnvPolicyStore env keys in their own namespace 2024-10-30 11:27:27 -07:00
env_policy_store.go util/syspolicy/source: put EnvPolicyStore env keys in their own namespace 2024-10-30 11:27:27 -07:00
policy_reader_test.go util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
policy_reader.go util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
policy_source.go util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
policy_store_windows_test.go util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
policy_store_windows.go util/syspolicy: implement a syspolicy store that reads settings from environment variables 2024-10-30 11:12:22 -05:00
test_store.go util/slicesx: add MapKeys and MapValues from golang.org/x/exp/maps 2025-01-03 10:48:31 -08:00