TailscaleNode class
A node this node can see on the tailnet, including offline nodes.
Returned by Tailscale.nodes(). Parsed from Go's
ipnstate.PeerStatus;
the Dart API uses Tailscale's user-facing "node" terminology.
- Annotations
Constructors
-
TailscaleNode({required String publicKey, required String stableNodeId, required String hostName, required String dnsName, required String os, required List<
String> tailscaleIPs, required bool online, required bool active, required int rxBytes, required int txBytes, bool exitNode = false, bool exitNodeOption = false, DateTime? lastSeen, String? relay, String? curAddr}) -
const
-
TailscaleNode.fromJson(Map<
String, dynamic> json) -
Parses one node from Go's
ipnstate.PeerStatusJSON shape.factory
Properties
- active → bool
-
Whether Tailscale currently considers this node active.
final
- curAddr → String?
-
The current direct address in
host:portform, or null if relayed.final - dnsName → String
-
The node's full
MagicDNS name
(for example,
my-laptop.tailnet.ts.net.).final - exitNode → bool
-
Whether this node is the currently selected exit node.
final
- exitNodeOption → bool
-
Whether this node is eligible to be selected as an exit node.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hostName → String
-
The node's hostname on the tailnet. Also the
MagicDNS label.
final
- ipv4 → String?
-
This node's first IPv4 address, or null.
no setter
- lastSeen → DateTime?
-
When this node was last seen, or null if never.
final
- online → bool
-
Whether the node is currently online.
final
- os → String
-
The node's operating system.
final
- publicKey → String
-
The node's WireGuard public key.
Rotates whenever the node re-registers — prefer stableNodeId
for durable references.
final
- relay → String?
-
The DERP relay
region code in use (for example,
nyc), or null when the path to this node is direct (node-to-node WireGuard).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- rxBytes → int
-
Bytes received from this node.
final
- stableNodeId → String
-
Stable Tailscale node identifier (e.g.
n1234AbCd).final -
tailscaleIPs
→ List<
String> -
The node's assigned Tailscale IP addresses.
final
- txBytes → int
-
Bytes sent to this node.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
listFromJson(
List json) → List< TailscaleNode> -
Parses a node snapshot list returned by
Tailscale.nodes().