2020-07-22 13:02:32 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2021-05-18 11:10:08 +00:00
|
|
|
"github.com/nspcc-dev/neofs-s3-gw/api"
|
2021-08-09 08:53:58 +00:00
|
|
|
"github.com/nspcc-dev/neofs-s3-gw/api/errors"
|
2020-07-22 13:02:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (h *handler) CopyObjectPartHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutObjectPartHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) ListObjectPartsHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) CompleteMultipartUploadHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) NewMultipartUploadHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) AbortMultipartUploadHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) SelectObjectContentHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetObjectRetentionHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetObjectLegalHoldHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutObjectRetentionHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutObjectLegalHoldHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketEncryptionHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketCorsHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketWebsiteHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketAccelerateHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketRequestPaymentHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketLoggingHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketReplicationHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketTaggingHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) DeleteBucketWebsiteHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) DeleteBucketTaggingHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketObjectLockConfigHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) GetBucketNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) ListenBucketNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) ListObjectsV2MHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutBucketEncryptionHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PutBucketObjectLockConfigHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *handler) PostPolicyBucketHandler(w http.ResponseWriter, r *http.Request) {
|
2021-08-09 08:53:58 +00:00
|
|
|
h.logAndSendError(w, "not implemented", api.GetReqInfo(r.Context()), errors.GetAPIError(errors.ErrNotImplemented))
|
2020-07-22 13:02:32 +00:00
|
|
|
}
|