summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-07-14 11:45:55 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2024-07-19 12:50:39 -0500
commit20562a4fb9c2af417c44b3ab63a826d9d0f6b6b2 (patch)
treec8fd6a907ee2be32007ba4fc7bfeccb25cd3ec83 /control/controlknobs/controlknobs.go
parente7bf6e716bdd4938bf51bf6c17ec442637ecb95b (diff)
downloadtailscale-20562a4fb9c2af417c44b3ab63a826d9d0f6b6b2.tar.xz
tailscale-20562a4fb9c2af417c44b3ab63a826d9d0f6b6b2.zip
cmd/viewer, types/views, util/codegen: add viewer support for custom container types
This adds support for container-like types such as Container[T] that don't explicitly specify a view type for T. Instead, a package implementing a container type should also implement and export a ContainerView[T, V] type and a ContainerViewOf(*Container[T]) ContainerView[T, V] function, which returns a view for the specified container, inferring the element view type V from the element type T. Updates #12736 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions