tailscale/tailcfg
Nick Khyl fc28c8e7f3 cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces
This adds support for generic types and interfaces to our cloner and viewer codegens.
It updates these packages to determine whether to make shallow or deep copies based
on the type parameter constraints. Additionally, if a template parameter or an interface
type has View() and Clone() methods, we'll use them for getters and the cloner of the
owning structure.

Updates #12736

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-07-11 16:38:53 -05:00
..
c2ntypes.go posture: add network hardware addresses to posture identity 2024-07-10 18:28:30 +01:00
derpmap.go all: make more tests pass/skip in airplane mode 2024-05-06 09:19:53 -07:00
proto_port_range_test.go tailcfg: implement text encoding for ProtoPortRange 2023-10-11 23:59:42 -07:00
proto_port_range.go tailcfg: implement text encoding for ProtoPortRange 2023-10-11 23:59:42 -07:00
tailcfg_clone.go cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces 2024-07-11 16:38:53 -05:00
tailcfg_test.go kube,tailcfg: store parsed recorder tags in a separate field (#12429) 2024-06-11 22:50:57 +01:00
tailcfg_view.go cmd/viewer,type/views: add MapSlice for maps of slices 2024-06-15 22:24:29 -07:00
tailcfg.go all: add test for package comments, fix, add comments as needed 2024-07-10 09:57:00 -07:00
tka.go tailcfg: add RPC structs for /tka/affected-sigs 2023-02-21 21:58:38 +00:00