mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-26 11:21:27 +01:00
@@ -215,10 +215,8 @@ func (v NodeView) Hostname() string { return v.ж.Hostname }
|
|||||||
// parts of headscale.
|
// parts of headscale.
|
||||||
func (v NodeView) GivenName() string { return v.ж.GivenName }
|
func (v NodeView) GivenName() string { return v.ж.GivenName }
|
||||||
|
|
||||||
// UserID is set for ALL nodes (tagged and user-owned) to track "created by".
|
// UserID identifies the owning user for user-owned nodes.
|
||||||
// For tagged nodes, this is informational only - the tag is the owner.
|
// Nil for tagged nodes, which are owned by their tags.
|
||||||
// For user-owned nodes, this identifies the owner.
|
|
||||||
// Only nil for orphaned nodes (should not happen in normal operation).
|
|
||||||
func (v NodeView) UserID() views.ValuePointer[uint] { return views.ValuePointerOf(v.ж.UserID) }
|
func (v NodeView) UserID() views.ValuePointer[uint] { return views.ValuePointerOf(v.ж.UserID) }
|
||||||
|
|
||||||
func (v NodeView) User() UserView { return v.ж.User.View() }
|
func (v NodeView) User() UserView { return v.ж.User.View() }
|
||||||
|
|||||||
Reference in New Issue
Block a user