Map S3 regions to Google (multi)regions

This commit is contained in:
Remco Verhoef
2017-05-08 16:49:41 -07:00
committed by Harshavardhana
parent bf55591c64
commit de5374f74c
2 changed files with 31 additions and 0 deletions

View File

@@ -179,6 +179,17 @@ const (
// Add more backends here.
)
// GatewayFn returns the GatewayLayer for the backend
type GatewayFn func([]string) (GatewayLayer, error)
var (
backends = map[gatewayBackend]GatewayFn{
azureBackend: newAzureLayer,
s3Backend: newS3Gateway,
gcsBackend: newGCSGateway,
}
)
// Returns access and secretkey set from environment variables.
func mustGetGatewayConfigFromEnv() (string, string, string) {
// Fetch access keys from environment variables.