skip to content
[readonly]

Changes to the fleet's desired state as the control port asks for them (load, upgrade, rollback, place, groups, sched pin/pause/cordon) and their revert

sh
$ sexc add @ajax/mesh-fleet-edit
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 04:08v/# 1 version
  • drwxr-xr-x-Oct 27 04:08files/# the files of 0.1.0
latest
0.1.0, published Oct 27 04:08 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-check ^0.1.0, @ajax/mesh-mt ^0.1.0, @ajax/mesh-parse ^0.1.0, @ajax/rust-fmt ^0.1.0, @ajax/mesh-member-list ^0.1.0, @ajax/mesh-fleet-doc ^0.1.0, @ajax/mesh-fleet-groups ^0.1.0, @ajax/mesh-place-mode ^0.1.0, @ajax/mesh-sched-needs ^0.1.0, @ajax/mesh-abi-base ^0.1.0, @ajax/mesh-abi-placement ^0.1.0
dependents
@ajax/mesh-peer-relay
keywords
mesh alphaos fleet fleet changes control
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-fleet-edit
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-fleet-edit
2
3A change to the fleet's desired state, as the control port asks for it (`mfe_parse`: `load`, `upgrade`,
4`rollback`, `unload`, `start`, `stop`, `reset`, `task`, `place`, `group <name> reform|on_loss`,
5`sched pin|unpin|pause|resume|autoreform|cordon|uncordon`), the next document it makes (`mfe_edit`, with
6the control port's refusals in the Rust's words), and `mfe_revert`: undo exactly what a change that
7failed on every member changed, keeping what committed after it.
8
9The leader's catalog and the up members that can run a program come in through `mfe_ctx`.
10
11## Ported from
12
13[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/fleet.rs`: `Req`
14(`parse`), `Image`, `EditCtx`, `edit`, `revert`.
15
16## Tests
17
18`tests/edit.c`: the Rust's `changes_edit_the_document`, `a_lockstep_upgrade_must_run_on_every_member`
19and `a_revert_undoes_only_its_change`.
20
21## Licence
22
23MIT. See the repository's LICENSE.