NodeState enum

The node's position in the connection lifecycle. Mirrors Go's ipn.State.

Inheritance
Available extensions

Values

noState → const NodeState

No persisted credentials and the engine has not been started.

This is the initial state when the node has never authenticated. An auth key must be provided to Tailscale.up to proceed.

needsLogin → const NodeState

The node needs authentication. Open TailscaleStatus.authUrl in a browser / web view to complete the login flow.

needsMachineAuth → const NodeState

The node is authenticated but waiting for admin approval on the control plane. See tailscale.com/kb/1099/device-approval.

starting → const NodeState

The node is connecting to the tailnet (WireGuard tunnel coming up).

running → const NodeState

The node is connected and ready to send/receive traffic.

stopped → const NodeState

The engine is not running but persisted credentials exist.

Returned by Tailscale.status when the node was previously authenticated but Tailscale.up has not been called yet, or after Tailscale.down. The next Tailscale.up can reconnect without an auth key.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String? s) NodeState
Parses a Go ipn.State string into a NodeState.

Constants

values → const List<NodeState>
A constant List of the values in this enum, in order of their declaration.