You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
errors.go util/syspolicy/source: add package for reading policy settings from external stores 1 year ago
key.go util/syspolicy: implement a syspolicy store that reads settings from environment variables 1 year ago
origin.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 1 year ago
policy_scope.go util/syspolicy: add rsop package that provides access to the resultant policy 1 year ago
policy_scope_test.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 1 year ago
raw_item.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 1 year ago
raw_item_test.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 1 year ago
setting.go util/syspolicy: add rsop package that provides access to the resultant policy 1 year ago
setting_test.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 1 year ago
snapshot.go util/syspolicy/setting: update Snapshot to use Go 1.23 iterators 1 year ago
snapshot_test.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 1 year ago
summary.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 1 year ago
types.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 1 year ago