TailscaleClient class abstract interface

Testable app-facing contract for an embedded Tailscale node.

Production code usually gets the real implementation from Tailscale.instance. App code can depend on this interface instead, which allows unit tests to provide a fake without loading the native runtime.

Implementers

Properties

diag Diag
no setter
exitNode ExitNode
no setter
funnel Funnel
no setter
hashCode int
The hash code for this object.
no setterinherited
http Http
no setter
onError Stream<TailscaleRuntimeError>
no setter
onNodeChanges Stream<List<TailscaleNode>>
no setter
onStateChange Stream<NodeState>
no setter
prefs Prefs
no setter
profiles Profiles
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serve Serve
no setter
taildrop Taildrop
no setter
tcp Tcp
no setter
tls Tls
no setter
udp Udp
no setter

Methods

down() Future<void>
logout() Future<void>
nodeByIp(String ip) Future<TailscaleNode?>
nodes() Future<List<TailscaleNode>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
status() Future<TailscaleStatus>
toString() String
A string representation of this object.
inherited
up({String hostname = '', String? authKey, bool ephemeral = false, Uri? controlUrl, Duration timeout = const Duration(seconds: 30)}) Future<TailscaleStatus>
whois(String ip) Future<TailscaleNodeIdentity?>

Operators

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