2017-03-16 20:21:58 +01:00
|
|
|
/*
|
|
|
|
* Minio Cloud Storage, (C) 2017 Minio, Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
2017-10-10 01:41:35 +02:00
|
|
|
import "io"
|
|
|
|
|
|
|
|
type gatewayUnsupported struct{}
|
|
|
|
|
|
|
|
// CopyObjectPart - Not implemented.
|
|
|
|
func (a gatewayUnsupported) CopyObjectPart(srcBucket, srcObject, destBucket, destObject string, uploadID string,
|
|
|
|
partID int, startOffset int64, length int64) (info PartInfo, err error) {
|
|
|
|
return info, traceError(NotImplemented{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// AnonPutObject creates a new object anonymously with the incoming data,
|
|
|
|
func (a gatewayUnsupported) AnonPutObject(bucket, object string, size int64, data io.Reader,
|
|
|
|
metadata map[string]string, sha256sum string) (ObjectInfo, error) {
|
|
|
|
return ObjectInfo{}, traceError(NotImplemented{})
|
|
|
|
}
|
|
|
|
|
2017-03-16 20:21:58 +01:00
|
|
|
// HealBucket - Not relevant.
|
2017-10-10 01:41:35 +02:00
|
|
|
func (a gatewayUnsupported) HealBucket(bucket string) error {
|
2017-03-16 20:21:58 +01:00
|
|
|
return traceError(NotImplemented{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListBucketsHeal - Not relevant.
|
2017-10-10 01:41:35 +02:00
|
|
|
func (a gatewayUnsupported) ListBucketsHeal() (buckets []BucketInfo, err error) {
|
2017-03-16 20:21:58 +01:00
|
|
|
return nil, traceError(NotImplemented{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// HealObject - Not relevant.
|
2017-10-10 01:41:35 +02:00
|
|
|
func (a gatewayUnsupported) HealObject(bucket, object string) (int, int, error) {
|
2017-04-01 02:55:15 +02:00
|
|
|
return 0, 0, traceError(NotImplemented{})
|
2017-03-16 20:21:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListObjectsHeal - Not relevant.
|
2017-10-10 01:41:35 +02:00
|
|
|
func (a gatewayUnsupported) ListObjectsHeal(bucket, prefix, marker, delimiter string, maxKeys int) (loi ListObjectsInfo, e error) {
|
2017-06-22 04:53:09 +02:00
|
|
|
return loi, traceError(NotImplemented{})
|
2017-03-16 20:21:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListUploadsHeal - Not relevant.
|
2017-10-10 01:41:35 +02:00
|
|
|
func (a gatewayUnsupported) ListUploadsHeal(bucket, prefix, marker, uploadIDMarker,
|
2017-06-22 04:53:09 +02:00
|
|
|
delimiter string, maxUploads int) (lmi ListMultipartsInfo, e error) {
|
|
|
|
return lmi, traceError(NotImplemented{})
|
2017-03-16 20:21:58 +01:00
|
|
|
}
|