Move gateway unsupported functions into a common struct. (#5009)

This is done to avoid repeated declaration of not-implemented
functions for each gateway. It also avoids a possible bug in go
https://github.com/golang/go/issues/18468 which is triggered on
our multiple PRs already.
This commit is contained in:
Harshavardhana
2017-10-09 16:41:35 -07:00
committed by GitHub
parent 4a0a491ca1
commit 099b5293a9
12 changed files with 145 additions and 272 deletions

View File

@@ -239,6 +239,7 @@ func checkGCSProjectID(ctx context.Context, projectID string) error {
// gcsGateway - Implements gateway for Minio and GCS compatible object storage servers.
type gcsGateway struct {
gatewayUnsupported
client *storage.Client
anonClient *minio.Core
projectID string