MCPcopy Index your code
hub / github.com/tailscale/tailscale / SelfName

Method SelfName

types/netmap/netmap.go:273–278  ·  view source on GitHub ↗

SelfName returns nm.SelfNode.Name, or the empty string if nm is nil or nm.SelfNode is invalid.

()

Source from the content-addressed store, hash-verified

271// SelfName returns nm.SelfNode.Name, or the empty string
272// if nm is nil or nm.SelfNode is invalid.
273func (nm *NetworkMap) SelfName() string {
274 if nm == nil || !nm.SelfNode.Valid() {
275 return ""
276 }
277 return nm.SelfNode.Name()
278}
279
280// SelfKeyExpiry returns nm.SelfNode.KeyExpiry, or the zero
281// value if nil or nm.SelfNode is invalid.

Callers 5

MagicDNSSuffixMethod · 0.95
runMethod · 0.80
dnsMapFromNetworkMapFunction · 0.80
updateStatusLockedMethod · 0.80
dnsConfigForNetmapFunction · 0.80

Calls 2

ValidMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected