1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-23 13:50:36 +01:00

hscontrol/types: regenerate types_view.go

make generate

Updates #3077
This commit is contained in:
Kristoffer Dalby 2026-02-20 09:27:23 +00:00
parent 3c75b5e94b
commit 89b23d75e4

View File

@ -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() }