blob: 039371d026c243eb80fedd39b5e033d0fd27b259 [file] [log] [blame]
giolekva8aa73e82022-07-09 11:34:39 +04001package installer
giolekva050609f2021-12-29 15:51:40 +04002
Giorgi Lekveishvili94cda9d2023-07-20 10:16:09 +04003import (
Giorgi Lekveishvili9d5e3f52024-03-13 15:02:50 +04004 "net"
Giorgi Lekveishvili94cda9d2023-07-20 10:16:09 +04005 "net/netip"
6)
7
gioe72b54f2024-04-22 10:44:41 +04008type EnvDNS struct {
9 Zone string `json:"zone,omitempty"`
10 Address string `json:"address,omitempty"`
11}
12
Giorgi Lekveishvili94cda9d2023-07-20 10:16:09 +040013type 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
gio3cdee592024-04-17 10:15:56 +040020type BootstrapConfig struct {
21 InfraName string `json:"name"`
22 PublicIP []net.IP `json:"publicIP"`
Giorgi Lekveishvili94cda9d2023-07-20 10:16:09 +040023 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 Lekveishvili9d5e3f52024-03-13 15:02:50 +040030type EnvCIDR struct {
31 Name string
32 IP net.IP
33}
34
35type EnvCIDRs []EnvCIDR