aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_handlers.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-19 01:21:44 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-19 01:21:44 -0700
commitc7228fefa70ef4f88d66484f4ac362b1be2d5a5c (patch)
tree87a09312e3e7207aa42282b022fa3fdf8dea205b /weed/s3api/s3api_handlers.go
parent702fbdf7310aa266bc0854492a83589d663d803e (diff)
downloadseaweedfs-c7228fefa70ef4f88d66484f4ac362b1be2d5a5c.tar.xz
seaweedfs-c7228fefa70ef4f88d66484f4ac362b1be2d5a5c.zip
add bucket creation and deletion
1. option for "weed s3 -filer.dir.buckets" to choose a folder for buckets 2. create a bucket 3. delete a bucket, recursively delete all metadata on filer
Diffstat (limited to 'weed/s3api/s3api_handlers.go')
-rw-r--r--weed/s3api/s3api_handlers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index 759478fe8..229b3a740 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -89,3 +89,7 @@ func writeResponse(w http.ResponseWriter, statusCode int, response []byte, mType
func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
writeResponse(w, http.StatusOK, response, mimeXML)
}
+
+func writeSuccessResponseEmpty(w http.ResponseWriter) {
+ writeResponse(w, http.StatusOK, nil, mimeNone)
+}