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

Method nodeLocked

tstest/integration/testcontrol/testcontrol.go:638–640  ·  view source on GitHub ↗

nodeLocked returns the node for nodeKey. It's always nil or cloned memory. s.mu must be held.

(nodeKey key.NodePublic)

Source from the content-addressed store, hash-verified

636//
637// s.mu must be held.
638func (s *Server) nodeLocked(nodeKey key.NodePublic) *tailcfg.Node {
639 return s.nodes[nodeKey].Clone()
640}
641
642// AddFakeNode injects a fake node into the server.
643func (s *Server) AddFakeNode() {

Callers 3

AwaitNodeInMapRequestMethod · 0.95
addDebugMessageMethod · 0.95
NodeMethod · 0.95

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected