From 894e6946dc7ffa5ab366df9a92a62c622ba934ce Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 20 Feb 2026 09:27:23 +0000 Subject: [PATCH] hscontrol/types: regenerate types_view.go make generate Updates #3077 --- hscontrol/types/types_view.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hscontrol/types/types_view.go b/hscontrol/types/types_view.go index e48dd029..cd648d9d 100644 --- a/hscontrol/types/types_view.go +++ b/hscontrol/types/types_view.go @@ -215,10 +215,8 @@ func (v NodeView) Hostname() string { return v.ж.Hostname } // parts of headscale. func (v NodeView) GivenName() string { return v.ж.GivenName } -// UserID is set for ALL nodes (tagged and user-owned) to track "created by". -// For tagged nodes, this is informational only - the tag is the owner. -// For user-owned nodes, this identifies the owner. -// Only nil for orphaned nodes (should not happen in normal operation). +// UserID identifies the owning user for user-owned nodes. +// Nil for tagged nodes, which are owned by their tags. func (v NodeView) UserID() views.ValuePointer[uint] { return views.ValuePointerOf(v.ж.UserID) } func (v NodeView) User() UserView { return v.ж.User.View() }