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/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>
4 months ago
..
c2ntypes.go posture: add network hardware addresses to posture identity 4 months ago
derpmap.go all: make more tests pass/skip in airplane mode 7 months ago
proto_port_range.go tailcfg: implement text encoding for ProtoPortRange 1 year ago
proto_port_range_test.go tailcfg: implement text encoding for ProtoPortRange 1 year ago
tailcfg.go all: add test for package comments, fix, add comments as needed 4 months ago
tailcfg_clone.go cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces 4 months ago
tailcfg_test.go kube,tailcfg: store parsed recorder tags in a separate field (#12429) 5 months ago
tailcfg_view.go cmd/viewer,type/views: add MapSlice for maps of slices 5 months ago
tka.go tailcfg: add RPC structs for /tka/affected-sigs 2 years ago