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

Method nodeIDsLocked

tstest/integration/testcontrol/testcontrol.go:617–626  ·  view source on GitHub ↗

nodeIDsLocked returns the node IDs of all nodes in the server, except for the node with the given ID.

(except tailcfg.NodeID)

Source from the content-addressed store, hash-verified

615// nodeIDsLocked returns the node IDs of all nodes in the server, except
616// for the node with the given ID.
617func (s *Server) nodeIDsLocked(except tailcfg.NodeID) []tailcfg.NodeID {
618 var ids []tailcfg.NodeID
619 for _, n := range s.nodes {
620 if n.ID == except {
621 continue
622 }
623 ids = append(ids, n.ID)
624 }
625 return ids
626}
627
628// Node returns the node for nodeKey. It's always nil or cloned memory.
629func (s *Server) Node(nodeKey key.NodePublic) *tailcfg.Node {

Callers 9

SetJailedMethod · 0.95
SetNodeCapMapMethod · 0.95
SetGlobalAppCapsMethod · 0.95
AddDNSRecordsMethod · 0.95
serveTKASignMethod · 0.95
updateNodeLockedMethod · 0.95
UpdateNodeMethod · 0.95
serveMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected