Expand description
§ts_control
Client for the Tailscale control plane.
Re-exports§
pub use client::FilterUpdate;pub use client::PeerUpdate;pub use client::RegistrationError;pub use client::StateUpdate;pub use client::connect;pub use client::register;
Modules§
- client
- Functionality for connecting to and communicating with the Tailscale control server.
Structs§
- Config
- Configuration for the control server.
- Control
Dialer - Manages state for control dial plan and handles selection of successive dial candidates.
- DEFAULT_
CONTROL_ SERVER - The default
Urlof the control plane server (aka “coordination server”). - Derp
Region - A single derp
Region, holding the region info and all the server info. - Dial
Candidate - A candidate endpoint for a control plane connection.
- Endpoint
- An endpoint (address + port) on which a peer can be reached.
- MapRequest
- Sent by a Tailscale node to the control server to either update the control plane about its current state, or to start a long-poll of network map updates. Includes a copy of the node’s current set of WireGuard endpoints and general host information.
- MapRequest
Builder - Builder type for
MapRequests; smooths over the annoying parts of creating a request. - Node
- A node in a tailnet.
- Node
Last Seen - Timestamps indicating when an offline node was last connected to the control plane. Only applies to nodes that are offline (disconnected from the control plane).
- Node
Update - A partial update to a
Nodein a tailnet. - Stable
Node Id - The stable ID of a node.
- Tailnet
Address - Addresses for a node within a tailnet.
Enums§
- Dial
Mode - The mode with which to connect to the control plane.
- Dial
Plan - A plan to connect to the control plane, supplied as part of a netmap update.
- Endpoint
Type - Distinguishes different sources of
MapRequest::endpointsvalues. - Error
- An error which occurred while connecting to the control server or control plane.
- Internal
Error Kind - What kind of internal error has occurred.
- Node
Status - Whether a node is online (connected to the control plane) or offline (disconnected from the control plane).
- Operation
- The phase of connecting the control plane to a Tailnet in which an error occurs.
Constants§
- PKG_
VERSION - Package version of
ts_controlas reported by cargo.
Statics§
Traits§
- TcpDialer
- Creates a TCP connection on the basis of a specific
DialCandidate.
Functions§
- complete_
connection - Complete a connection to control over the supplied I/O
stream. - convert_
derp_ map - Convert a derp map from the
ts_control_serderepresentation to thets_derprepresentation.
Type Aliases§
- DerpMap
- The full derp state, a map of
ts_derp::RegionIds toRegions. - NodeId
- The unique id of a node.