ark::tailscale
Classes
-
ark::tailscale::TailscaleClient
This client allows you to communicate with the local Tailscale daemon, doing basic status checks or authentication. -
ark::tailscale::TailscaleStatusStage
This stage polls tailscale network status and publishes it out.
Functions
Declared in “ark/tailscale/auth.hh”:
-
api::TailscaleOauthResponse authenticate_with_oauth(const core::Url & tailscale_api_url_base, const std::string & client_id, const std::string & client_secret, const std::string & scope)
Authenticates with oauth to Tailscale (the public API), and responds with a token that can be used for future calls. -
std::string create_auth_key(const core::Url & tailscale_api_url_base, const std::string & access_token, const std::string & description, uint32_t key_expiry_seconds, const std::vector< std::string > & tags)
Creates a Tailscale auth key, contacting the API server with the given access key.
Declared in “ark/tailscale/convert.hh”:
- TailscaleStatus make_tailscale_status(const std::string & payload)
Converts an incoming tailscale status JSON message into a tailscale status that we can process.