ark::tailscale::TailscaleClient
Defined in header “ark/tailscale/client.hh”.
This client allows you to communicate with the local Tailscale daemon, doing basic status checks or authentication.
Methods
-
TailscaleClient(std::filesystem::path socket_path)
Constructor. Uses the given socket path to connect to. -
void start(const std::string & auth_key, const std::optional< std::string > & desired_hostname, const std::optional< std::vector< std::string » & tags)
Logs in locally with the given auth key. Returns if the process has begun; you need to query status periodically to determine if and when it was successful. -
TailscaleStatus status()
Returns status from the local Tailscale daemon.