Skip to main content

tailscale_rest/
lib.rs

1//! Typed client for the Tailscale control-plane REST API v2.
2//!
3//! Written here rather than taken from a crate (ADR-0002), so this is where
4//! authentication, retry policy, pagination and the response shapes live.
5
6// A panic in a test is a failed test, which is what these lints exist to
7// prevent elsewhere.
8#![cfg_attr(test, allow(clippy::expect_used, clippy::unwrap_used))]
9
10pub mod client;
11pub mod credentials;
12pub mod error;
13#[cfg(any(test, feature = "testing"))]
14pub mod fake;
15pub mod models;
16pub mod secret;
17mod token;
18
19pub use client::{
20    Answer, Client, ClientConfig, DEFAULT_BASE_URL, RequestBuilder, TextBody, checked_base_url,
21};
22pub use credentials::{Credentials, DEFAULT_TAILNET};
23pub use error::ApiError;
24pub use secret::Secret;