domain/architecture/system/deployment/type.bend
near-v-framework@0.4.0.0 · 29 lines · 5 definitions
1import Base
2import near-v-framework@0.4.0.0/domain/architecture/system/deployment/host/type.bend as H
3import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/type.bend as ND
4import near-v-framework@0.4.0.0/domain/architecture/system/deployment/azure/type.bend as Az
5
6
7type Role is Data:
8 Device{}
9 Server{}
10
11
12type Platform is Data:
13 Unmanaged{}
14 Darwin{config: ND.NixDarwin}
15 AzureCloud{config: Az.Azure}
16
17
18type Node is Data:
19 Node{key: String, name: String, technology: String, role: Role, host: H.Host, platform: Platform, children: List<&2, Node>, instances: List<&2, String>}
20
21
22type Break is Data:
23 AddressChanged{}
24 StoreRemoved{name: String}
25
26
27
28type Deployment is Data:
29 Deployment{address: String, stores: List<&2, String>, accepted: List<&2, Break>, nodes: List<&2, Node>}