mirror of
https://github.com/minio/minio.git
synced 2025-11-12 23:01:39 -05:00
Map S3 regions to Google (multi)regions
This commit is contained in:
committed by
Harshavardhana
parent
bf55591c64
commit
de5374f74c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user