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

Method PrefixFromUUID

tailnet/conn.go:425–427  ·  view source on GitHub ↗

PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID.

(uid uuid.UUID)

Source from the content-addressed store, hash-verified

423
424// PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID.
425func (p ServicePrefix) PrefixFromUUID(uid uuid.UUID) netip.Prefix {
426 return netip.PrefixFrom(p.AddrFromUUID(uid), 128)
427}
428
429// RandomPrefix returns a single IPv6 /128 prefix within the service prefix.
430func (p ServicePrefix) RandomPrefix() netip.Prefix {

Callers 7

TestCoderServicePrefixFunction · 0.80
TestCoordinatorFunction · 0.80
StartClientMethod · 0.80
wireguardAddressesMethod · 0.80

Calls 1

AddrFromUUIDMethod · 0.95