UpdateService class
Handles node update requests dispatched by the Hub (NodeControl with
action update). Supports three update targets:
os— apply OS package updates via the platform package manageragent— self-update the OmnyServer agent (placeholder: reports the mechanism; full remote self-update is on the roadmap)<package>— update a single named package
Returns (success, message) suitable for a NodeControlHandler.
Constructors
- UpdateService({CommandExecutor executor = const ProcessCommandExecutor()})
-
Creates an update service.
const
Properties
- executor → CommandExecutor
-
Runs the underlying commands.
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
-
handle(
NodeControl request) → Future< (bool, String)> -
Handles a node-control
request; onlyupdateis acted on here. -
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