skip to content
==> 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.