Expand description
A rust library for interacting with the Tailscale API.
For more information, the Tailscale API is still in beta. The docs are here: https://github.com/tailscale/tailscale/blob/main/api.md
Example:
use serde::{Deserialize, Serialize};
use tailscale_api::Tailscale;
async fn get_devices() {
// Initialize the Tailscale client.
let tailscale = Tailscale::new_from_env();
// List the devices.
let devices = tailscale.list_devices().await.unwrap();
println!("{:?}", devices);
}
Structs§
- APIError
- Error type returned by our library.
- APIResponse
- The data type for an API response.
- Device
- The data type for a device.
- Tailscale
- Entrypoint for interacting with the Tailscale API.