Add bucket notification support for NAS gateway (#6908)

Fixes #6885
This commit is contained in:
Harshavardhana
2018-12-03 00:32:14 -08:00
committed by Nitish Tiwari
parent 5549a44566
commit d6af3c1237
4 changed files with 36 additions and 24 deletions

View File

@@ -108,7 +108,7 @@ func (g *NAS) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error)
if err != nil {
return nil, err
}
return &nasObjects{newObject.(*minio.FSObjects)}, nil
return &nasObjects{newObject}, nil
}
// Production - nas gateway is production ready.
@@ -118,15 +118,5 @@ func (g *NAS) Production() bool {
// nasObjects implements gateway for Minio and S3 compatible object storage servers.
type nasObjects struct {
*minio.FSObjects
}
// IsNotificationSupported returns whether notifications are applicable for this layer.
func (l *nasObjects) IsNotificationSupported() bool {
return false
}
// IsCompressionSupported returns whether compression is applicable for this layer.
func (l *nasObjects) IsCompressionSupported() bool {
return false
minio.ObjectLayer
}