storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/cmd/storage-rest-common.go (about) 1 /* 2 * MinIO Cloud Storage, (C) 2018-2019 MinIO, Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package cmd 18 19 const ( 20 storageRESTVersion = "v31" // Added RenameData with fileInfo() 21 storageRESTVersionPrefix = SlashSeparator + storageRESTVersion 22 storageRESTPrefix = minioReservedBucketPath + "/storage" 23 ) 24 25 const ( 26 storageRESTMethodHealth = "/health" 27 storageRESTMethodDiskInfo = "/diskinfo" 28 storageRESTMethodNSScanner = "/nsscanner" 29 storageRESTMethodMakeVol = "/makevol" 30 storageRESTMethodMakeVolBulk = "/makevolbulk" 31 storageRESTMethodStatVol = "/statvol" 32 storageRESTMethodDeleteVol = "/deletevol" 33 storageRESTMethodListVols = "/listvols" 34 35 storageRESTMethodAppendFile = "/appendfile" 36 storageRESTMethodCreateFile = "/createfile" 37 storageRESTMethodWriteAll = "/writeall" 38 storageRESTMethodWriteMetadata = "/writemetadata" 39 storageRESTMethodUpdateMetadata = "/updatemetadata" 40 storageRESTMethodDeleteVersion = "/deleteversion" 41 storageRESTMethodReadVersion = "/readversion" 42 storageRESTMethodRenameData = "/renamedata" 43 storageRESTMethodCheckParts = "/checkparts" 44 storageRESTMethodCheckFile = "/checkfile" 45 storageRESTMethodReadAll = "/readall" 46 storageRESTMethodReadFile = "/readfile" 47 storageRESTMethodReadFileStream = "/readfilestream" 48 storageRESTMethodListDir = "/listdir" 49 storageRESTMethodDeleteFile = "/deletefile" 50 storageRESTMethodDeleteVersions = "/deleteverions" 51 storageRESTMethodRenameFile = "/renamefile" 52 storageRESTMethodVerifyFile = "/verifyfile" 53 storageRESTMethodWalkDir = "/walkdir" 54 ) 55 56 const ( 57 storageRESTVolume = "volume" 58 storageRESTVolumes = "volumes" 59 storageRESTDirPath = "dir-path" 60 storageRESTFilePath = "file-path" 61 storageRESTForceDelMarker = "force-delete-marker" 62 storageRESTVersionID = "version-id" 63 storageRESTReadData = "read-data" 64 storageRESTTotalVersions = "total-versions" 65 storageRESTSrcVolume = "source-volume" 66 storageRESTSrcPath = "source-path" 67 storageRESTDstVolume = "destination-volume" 68 storageRESTDstPath = "destination-path" 69 storageRESTOffset = "offset" 70 storageRESTLength = "length" 71 storageRESTCount = "count" 72 storageRESTPrefixFilter = "prefix" 73 storageRESTForwardFilter = "forward" 74 storageRESTRecursive = "recursive" 75 storageRESTReportNotFound = "report-notfound" 76 storageRESTBitrotAlgo = "bitrot-algo" 77 storageRESTBitrotHash = "bitrot-hash" 78 storageRESTDiskID = "disk-id" 79 storageRESTForceDelete = "force-delete" 80 )