Skip to content

Commit

Permalink
update regions (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
sa7mon authored Sep 17, 2024
1 parent 4b04111 commit 9c61311
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/regioncheck/regioncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sync"
)

// eq compares sorted string slices. Once we move to Golang 1.21, use slices.Equal instead.
// eq compares sorted string slices. TODO: Once we move to Golang 1.21, use slices.Equal instead.
func eq(f []string, s []string) bool {
if len(f) != len(s) {
return false
Expand Down
8 changes: 5 additions & 3 deletions provider/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ var AllProviders = []string{
}

var ProviderRegions = map[string][]string{
"digitalocean": {"ams3", "blr1", "fra1", "nyc3", "sfo2", "sfo3", "sgp1", "syd1"},
"digitalocean": {"ams3", "blr1", "fra1", "lon1", "nyc3", "sfo2", "sfo3", "sgp1", "syd1"},
"dreamhost": {"us-east-1"},
"linode": {"ap-south-1", "eu-central-1", "fr-par-1", "se-sto-1", "us-east-1", "us-iad-1", "us-ord-1", "us-southeast-1"},
"scaleway": {"fr-par", "nl-ams", "pl-waw"},
"linode": {"ap-south-1", "br-gru-1", "es-mad-1", "eu-central-1", "fr-par-1", "id-cgk-1", "in-maa-1",
"it-mil-1", "jp-osa-1", "nl-ams-1", "se-sto-1", "us-east-1", "us-iad-1", "us-lax-1", "us-mia-1",
"us-ord-1", "us-sea-1", "us-southeast-1"},
"scaleway": {"fr-par", "nl-ams", "pl-waw"},
}

func NewProvider(name string) (StorageProvider, error) {
Expand Down

0 comments on commit 9c61311

Please sign in to comment.