nodes method
Every registered node, optionally narrowed.
labels are key=value selectors and all must match; online limits
it to nodes currently connected. Both are applied by the Hub, which is the
difference between asking which machines are the production ones and
downloading the fleet to find out.
Implementation
Future<List<NodeDescriptor>> nodes({
List<String> labels = const [],
bool? online,
}) async => _list(
await get(
_query('/nodes', {
'label': labels,
if (online != null) 'online': ['$online'],
}),
),
NodeDescriptor.fromJson,
);