Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-12 04:37:51 +00:00
parent d99bbc3add
commit 314510cafb
9 changed files with 368 additions and 4 deletions
+9
View File
@@ -9,6 +9,15 @@ type Region struct {
Regions []string `json:",omitempty" yaml:",omitempty"`
}
// Zones ...
func (r *Region) Zones() []string {
out := make([]string, len(r.zones))
for i := range r.zones {
out[i] = r.zones[i].Name
}
return out
}
func (m *Cluster) initRegions(_ *ScanOptions) error {
regions := make(map[string][]*Zone)