mesh/delivery-group group feat/sdk1 rejected: composed together: the checker's verdict at the members' heads (428d048dd50a): unit: git.novox.be/novox/mesh-sdk/…
mesh/delivery closed: a newer head of the same pull request
mesh/check failed: unit: git.novox.be/novox/mesh-sdk/go/process.TestStatePutWritesAKeyWhole: a Put through a short blackout: 0, mesh-mail's state send…
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
16 lines
998 B
Go
16 lines
998 B
Go
package catalogue
|
|
|
|
// A handed module's plan names the provider serving each provision it requires (design 57 V5a, issue 760): the
|
|
// module on the machine resolution chose for this consumer, and the local name it keeps the credential under where
|
|
// it keeps several, so the vault, which reads the plan in the assignments mirror, sees a consumer bind and unbind
|
|
// (novox/hq ADR 0349 clause 8). One entry per provision and local name, the same entry that names a credential
|
|
// the vault keeps for it alone (issue 757).
|
|
|
|
// twoStores is a mesh where two machines each run a store providing the database, the consumer pinned to one.
|
|
func twoStores(pin string) World {
|
|
return World{Offered: map[string][]Provider{"postgres-database": {
|
|
{Node: "anchor", At: "anchor.internal", Module: "store", Serves: map[string]any{"port": 5432}},
|
|
{Node: "home", At: "home.internal", Module: "store-two", Serves: map[string]any{"port": 5434}},
|
|
}}, Pinned: map[string]Chosen{"postgres-database": {Node: pin}}}
|
|
}
|