tailscale/util/syspolicy/setting
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
..
errors.go util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
key.go util/syspolicy: implement a syspolicy store that reads settings from environment variables 2024-10-30 11:12:22 -05:00
origin.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00
policy_scope_test.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00
policy_scope.go util/syspolicy: add rsop package that provides access to the resultant policy 2024-10-16 00:06:14 -05:00
raw_item_test.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 2024-10-30 12:50:29 -05:00
raw_item.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 2024-10-30 12:50:29 -05:00
setting_test.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00
setting.go util/syspolicy: add rsop package that provides access to the resultant policy 2024-10-16 00:06:14 -05:00
snapshot_test.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 2024-10-30 12:50:29 -05:00
snapshot.go util/syspolicy/setting: update Snapshot to use Go 1.23 iterators 2024-10-08 15:02:23 -05:00
summary.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00
types.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00