mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Implement gateway support Google Cloud Storage
This commit is contained in:
@@ -132,6 +132,7 @@ type gatewayBackend string
|
||||
const (
|
||||
azureBackend gatewayBackend = "azure"
|
||||
s3Backend gatewayBackend = "s3"
|
||||
gcsBackend gatewayBackend = "gcs"
|
||||
// Add more backends here.
|
||||
)
|
||||
|
||||
@@ -173,6 +174,8 @@ func newGatewayLayer(backendType gatewayBackend, endpoint, accessKey, secretKey
|
||||
return newAzureLayer(endpoint, accessKey, secretKey, secure)
|
||||
case s3Backend:
|
||||
return newS3Gateway(endpoint, accessKey, secretKey, secure)
|
||||
case gcsBackend:
|
||||
return newGCSGateway(endpoint, accessKey, secretKey, secure)
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("Unrecognized backend type %s", backendType)
|
||||
|
||||
Reference in New Issue
Block a user