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}}} }