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

Method ShortString

types/key/node.go:240–242  ·  view source on GitHub ↗

ShortString returns the Tailscale conventional debug representation of a public key: the first five base64 digits of the key, in square brackets.

()

Source from the content-addressed store, hash-verified

238// of a public key: the first five base64 digits of the key, in square
239// brackets.
240func (k NodePublic) ShortString() string {
241 return debug32(k.k)
242}
243
244// AppendTo appends k, serialized as a 32-byte binary value, to
245// buf. Returns the new slice.

Callers 15

TestNodeKeyFunction · 0.95
StringMethod · 0.95
waitForPeerReachableFunction · 0.45
HashRegisterRequestFunction · 0.45
doLoginMethod · 0.45
PrettyMethod · 0.45
printConciseHeaderMethod · 0.45
printPeerConciseFunction · 0.45
onOpenTimeoutMethod · 0.45
ReconfigMethod · 0.45
PingMethod · 0.45
SetPeersMethod · 0.45

Calls 1

debug32Function · 0.85

Tested by 15

TestNodeKeyFunction · 0.76
waitForPeerReachableFunction · 0.36
TestDiscoAtomicFunction · 0.36
StringMethod · 0.36
TestRotateDiscoKeyFunction · 0.36
TestPeerRelayPingFunction · 0.36
TestDiscoKeyChangeFunction · 0.36
checkDiscoRotatedFunction · 0.36
TestPeerRelayFunction · 0.36