Skip to main content

Crate tailscale_rest

Crate tailscale_rest 

Source
Expand description

Typed client for the Tailscale control-plane REST API v2.

Written here rather than taken from a crate (ADR-0002), so this is where authentication, retry policy, pagination and the response shapes live.

Re-exports§

pub use client::Answer;
pub use client::Client;
pub use client::ClientConfig;
pub use client::DEFAULT_BASE_URL;
pub use client::RequestBuilder;
pub use client::TextBody;
pub use client::checked_base_url;
pub use credentials::Credentials;
pub use credentials::DEFAULT_TAILNET;
pub use error::ApiError;
pub use secret::Secret;

Modules§

client
The transport: one client, and the rules every call goes through.
credentials
Finding a control-plane credential in the environment.
error
What can go wrong between here and the control plane.
models
The shapes the control plane sends, written by hand (ADR-0003).
secret
A string that does not print itself.

Macros§

model
Declare models.