| 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 ( |
| 4 | "net/netip" |
| 5 | ) |
| 6 | |
| 7 | type EnvServiceIPs struct { |
| 8 | ConfigRepo netip.Addr `json:"configRepo"` |
| 9 | IngressPublic netip.Addr `json:"ingressPublic"` |
| 10 | From netip.Addr `json:"from"` |
| 11 | To netip.Addr `json:"to"` |
| 12 | } |
| 13 | |
| 14 | type EnvConfig struct { |
| 15 | Name string `json:"name"` |
| 16 | PublicIP string `json:"publicIP"` |
| 17 | NamespacePrefix string `json:"namespacePrefix"` |
| 18 | StorageDir string `json:"storageDir"` |
| 19 | VolumeDefaultReplicaCount int `json:"volumeDefaultReplicaCount"` |
| 20 | AdminPublicKey []byte `json:"adminPublicKey"` |
| 21 | ServiceIPs EnvServiceIPs `json:"serviceIPs"` |
| 22 | } |
| 23 | |
| giolekva | 050609f | 2021-12-29 15:51:40 +0400 | [diff] [blame] | 24 | type Config struct { |
| 25 | Values Values `json:"values"` |
| 26 | } |
| 27 | |
| 28 | type Values struct { |
| Giorgi Lekveishvili | 0ccd148 | 2023-06-21 15:02:24 +0400 | [diff] [blame] | 29 | PCloudEnvName string `json:"pcloudEnvName,omitempty"` |
| 30 | Id string `json:"id,omitempty"` |
| 31 | ContactEmail string `json:"contactEmail,omitempty"` |
| 32 | Domain string `json:"domain,omitempty"` |
| 33 | PrivateDomain string `json:"privateDomain,omitempty"` |
| 34 | PublicIP string `json:"publicIP,omitempty"` |
| 35 | NamespacePrefix string `json:"namespacePrefix,omitempty"` |
| 36 | // GandiAPIToken string `json:"gandiAPIToken,omitempty"` |
| 37 | // LighthouseAuthUIIP string `json:"lighthouseAuthUIIP,omitempty"` |
| 38 | // LighthouseMainIP string `json:"lighthouseMainIP,omitempty"` |
| 39 | // LighthouseMainPort string `json:"lighthouseMainPort,omitempty"` |
| 40 | // MXHostname string `json:"mxHostname,omitempty"` |
| 41 | // MailGatewayAddress string `json:"mailGatewayAddress,omitempty"` |
| 42 | // MatrixOAuth2ClientSecret string `json:"matrixOAuth2ClientSecret,omitempty"` |
| 43 | // MatrixStorageSize string `json:"matrixStorageSize,omitempty"` |
| 44 | // PiholeOAuth2ClientSecret string `json:"piholeOAuth2ClientSecret,omitempty"` |
| 45 | // PiholeOAuth2CookieSecret string `json:"piholeOAuth2CookieSecret,omitempty"` |
| giolekva | 050609f | 2021-12-29 15:51:40 +0400 | [diff] [blame] | 46 | } |