| 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 | |
| gio | e72b54f | 2024-04-22 10:44:41 +0400 | [diff] [blame^] | 8 | type EnvDNS struct { |
| 9 | Zone string `json:"zone,omitempty"` |
| 10 | Address string `json:"address,omitempty"` |
| 11 | } |
| 12 | |
| Giorgi Lekveishvili | 94cda9d | 2023-07-20 10:16:09 +0400 | [diff] [blame] | 13 | type EnvServiceIPs struct { |
| 14 | ConfigRepo netip.Addr `json:"configRepo"` |
| 15 | IngressPublic netip.Addr `json:"ingressPublic"` |
| 16 | From netip.Addr `json:"from"` |
| 17 | To netip.Addr `json:"to"` |
| 18 | } |
| 19 | |
| gio | 3cdee59 | 2024-04-17 10:15:56 +0400 | [diff] [blame] | 20 | type BootstrapConfig struct { |
| 21 | InfraName string `json:"name"` |
| 22 | PublicIP []net.IP `json:"publicIP"` |
| Giorgi Lekveishvili | 94cda9d | 2023-07-20 10:16:09 +0400 | [diff] [blame] | 23 | NamespacePrefix string `json:"namespacePrefix"` |
| 24 | StorageDir string `json:"storageDir"` |
| 25 | VolumeDefaultReplicaCount int `json:"volumeDefaultReplicaCount"` |
| 26 | AdminPublicKey []byte `json:"adminPublicKey"` |
| 27 | ServiceIPs EnvServiceIPs `json:"serviceIPs"` |
| 28 | } |
| 29 | |
| Giorgi Lekveishvili | 9d5e3f5 | 2024-03-13 15:02:50 +0400 | [diff] [blame] | 30 | type EnvCIDR struct { |
| 31 | Name string |
| 32 | IP net.IP |
| 33 | } |
| 34 | |
| 35 | type EnvCIDRs []EnvCIDR |