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/types/opt
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>
3 weeks ago
..
bool.go types/opt: add BoolFlag for setting Bool value as a flag 3 months ago
bool_test.go types/opt: add BoolFlag for setting Bool value as a flag 3 months ago
value.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 3 weeks ago
value_test.go types/opt: add generic Value[T any] for optional values of any types 5 months ago