| giolekva | 8aa73e8 | 2022-07-09 11:34:39 +0400 | [diff] [blame] | 1 | package installer |
| giolekva | 050609f | 2021-12-29 15:51:40 +0400 | [diff] [blame] | 2 | |
| Giorgi Lekveishvili | 94cda9d | 2023-07-20 10:16:09 +0400 | [diff] [blame] | 3 | import ( |
| Giorgi Lekveishvili | 9d5e3f5 | 2024-03-13 15:02:50 +0400 | [diff] [blame] | 4 | "net" |
| Giorgi Lekveishvili | 94cda9d | 2023-07-20 10:16:09 +0400 | [diff] [blame] | 5 | "net/netip" |
| 6 | ) |
| 7 | |
| 8 | type EnvServiceIPs struct { |
| 9 | ConfigRepo netip.Addr `json:"configRepo"` |
| 10 | IngressPublic netip.Addr `json:"ingressPublic"` |
| 11 | From netip.Addr `json:"from"` |
| 12 | To netip.Addr `json:"to"` |
| 13 | } |
| 14 | |
| gio | 3cdee59 | 2024-04-17 10:15:56 +0400 | [diff] [blame^] | 15 | type BootstrapConfig struct { |
| 16 | InfraName string `json:"name"` |
| 17 | PublicIP []net.IP `json:"publicIP"` |
| Giorgi Lekveishvili | 94cda9d | 2023-07-20 10:16:09 +0400 | [diff] [blame] | 18 | NamespacePrefix string `json:"namespacePrefix"` |
| 19 | StorageDir string `json:"storageDir"` |
| 20 | VolumeDefaultReplicaCount int `json:"volumeDefaultReplicaCount"` |
| 21 | AdminPublicKey []byte `json:"adminPublicKey"` |
| 22 | ServiceIPs EnvServiceIPs `json:"serviceIPs"` |
| 23 | } |
| 24 | |
| Giorgi Lekveishvili | 9d5e3f5 | 2024-03-13 15:02:50 +0400 | [diff] [blame] | 25 | type EnvCIDR struct { |
| 26 | Name string |
| 27 | IP net.IP |
| 28 | } |
| 29 | |
| 30 | type EnvCIDRs []EnvCIDR |