PreviewExecutor class
Runs an ordered list of Steps, and can be asked first what running them would do.
It does not render, does not ask anybody for approval, and does not know
what a flag or a request parameter is. A host composes those around it:
preview, render, take the decision however that host takes decisions, and
then perform. Keeping the decision outside is what lets the same engine sit
behind a CLI's --plan / --apply and an endpoint's dry-run.
Constructors
- PreviewExecutor()
-
const
Properties
- 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
-
perform(
Iterable< Step> steps) → Future<Execution> -
Perform
stepsin order, and check what each did against what it said. -
preview(
Iterable< Step> steps) → List<Preview> -
What
stepssay they would do, in order. Nothing is performed. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited