Documentation
¶
Overview ¶
Package tailhelp provides helper functions for working with Tailscale's API, making it easier to get information about the local node and its peers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MyIP ¶
MyIP returns the first IPv4 address of the local Tailscale node. Returns an error if no IPv4 address is found or if unable to get node status.
func PeerIPv4sFromHostnamePrefix ¶ added in v0.1.3
PeerIPv4sFromHostnamePrefix returns a list of Tailscale IPv4 addresses for peers that match the given hostname prefix. If onlyOnline is true, only returns IPs from peers that are currently online. Returns an empty list if no matching peers are found.
func PeersFromHostnamePrefix ¶
PeersFromHostnamePrefix returns a list of peer DNS names that match the given hostname prefix. If onlyOnline is true, only returns peers that are currently online. Returns an empty list if no matching peers are found.
Types ¶
This section is empty.