CapabilityScanner class
Runs a set of CapabilityDetectors concurrently and assembles the detected NodeCapabilities.
The standard factory wires up the built-in detectors (container engines, language runtimes, tooling and GPU/accelerators); custom detectors can be supplied for site-specific capabilities.
Constructors
-
CapabilityScanner(List<
CapabilityDetector> detectors) -
Creates a scanner over
detectors.const - CapabilityScanner.standard()
-
The default scanner: detects Docker, Podman, Dart, Python, Java, Node.js,
Git, SSH, CUDA, Metal and OpenCL.
factory
Properties
-
detectors
→ List<
CapabilityDetector> -
The detectors to run.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
scan(
) → Future< NodeCapabilities> - Runs all detectors and returns the detected capabilities.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited