MCPcopy Index your code
hub / github.com/coder/coder / AddrFromUUID

Method AddrFromUUID

tailnet/conn.go:420–422  ·  view source on GitHub ↗

AddrFromUUID returns an IPv6 address corresponding to the given UUID in the service prefix.

(uid uuid.UUID)

Source from the content-addressed store, hash-verified

418
419// AddrFromUUID returns an IPv6 address corresponding to the given UUID in the service prefix.
420func (p ServicePrefix) AddrFromUUID(uid uuid.UUID) netip.Addr {
421 return netip.AddrFrom16(p.maskUUID(uid))
422}
423
424// PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID.
425func (p ServicePrefix) PrefixFromUUID(uid uuid.UUID) netip.Prefix {

Callers 15

PrefixFromUUIDMethod · 0.95
ReverseProxyMethod · 0.80
PingMethod · 0.80
newTailnetConnFunction · 0.80
agentAddressMethod · 0.80
TestCoderServicePrefixFunction · 0.80
TestCoordinatorFunction · 0.80
updateDNSNamesMethod · 0.80

Calls 1

maskUUIDMethod · 0.95

Tested by 12

newTailnetConnFunction · 0.64
TestCoderServicePrefixFunction · 0.64
TestCoordinatorFunction · 0.64
TestSuiteFunction · 0.64
TestBigUDPFunction · 0.64
handleTestSubprocessFunction · 0.64
TestAgent_DialFunction · 0.64