tailscale/util/syspolicy
Nick Khyl 2a2228f97b util/syspolicy/setting: make setting.RawItem JSON-marshallable
We add setting.RawValue, a new type that facilitates unmarshalling JSON numbers and arrays
as uint64 and []string (instead of float64 and []any) for policy setting values.
We then use it to make setting.RawItem JSON-marshallable and update the tests.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-10-30 12:50:29 -05:00
..
internal util/syspolicy: implement a syspolicy store that reads settings from environment variables 2024-10-30 11:12:22 -05:00
rsop util/syspolicy: add rsop package that provides access to the resultant policy 2024-10-16 00:06:14 -05:00
setting util/syspolicy/setting: make setting.RawItem JSON-marshallable 2024-10-30 12:50:29 -05:00
source util/syspolicy/source: use errors instead of github.com/pkg/errors 2024-10-30 12:14:36 -05:00
handler.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00
policy_keys.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00
policy_keys_test.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00
syspolicy.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00
syspolicy_test.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00
syspolicy_windows.go util/syspolicy, ipn/ipnlocal: update syspolicy package to utilize syspolicy/rsop 2024-10-25 12:41:07 -05:00