2019-03-14 19:27:31 -04:00
|
|
|
/*
|
2019-04-09 14:39:42 -04:00
|
|
|
* MinIO Cloud Storage, (C) 2019 MinIO, Inc.
|
2019-03-14 19:27:31 -04:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2019-11-04 12:30:59 -05:00
|
|
|
const (
|
2020-07-23 11:03:31 -04:00
|
|
|
peerRESTVersion = "v10"
|
2019-11-04 12:30:59 -05:00
|
|
|
peerRESTVersionPrefix = SlashSeparator + peerRESTVersion
|
|
|
|
peerRESTPrefix = minioReservedBucketPath + "/peer"
|
|
|
|
peerRESTPath = peerRESTPrefix + peerRESTVersionPrefix
|
|
|
|
)
|
2019-03-14 19:27:31 -04:00
|
|
|
|
|
|
|
const (
|
2020-10-28 12:18:35 -04:00
|
|
|
peerRESTMethodHealth = "/health"
|
|
|
|
peerRESTMethodServerInfo = "/serverinfo"
|
|
|
|
peerRESTMethodDriveOBDInfo = "/driveobdinfo"
|
|
|
|
peerRESTMethodNetOBDInfo = "/netobdinfo"
|
|
|
|
peerRESTMethodCPUOBDInfo = "/cpuobdinfo"
|
|
|
|
peerRESTMethodDiskHwOBDInfo = "/diskhwobdinfo"
|
|
|
|
peerRESTMethodOsInfoOBDInfo = "/osinfoobdinfo"
|
|
|
|
peerRESTMethodMemOBDInfo = "/memobdinfo"
|
|
|
|
peerRESTMethodProcOBDInfo = "/procobdinfo"
|
|
|
|
peerRESTMethodDispatchNetOBDInfo = "/dispatchnetobdinfo"
|
|
|
|
peerRESTMethodDeleteBucketMetadata = "/deletebucketmetadata"
|
|
|
|
peerRESTMethodLoadBucketMetadata = "/loadbucketmetadata"
|
|
|
|
peerRESTMethodServerUpdate = "/serverupdate"
|
|
|
|
peerRESTMethodSignalService = "/signalservice"
|
|
|
|
peerRESTMethodBackgroundHealStatus = "/backgroundhealstatus"
|
|
|
|
peerRESTMethodGetLocks = "/getlocks"
|
|
|
|
peerRESTMethodLoadUser = "/loaduser"
|
|
|
|
peerRESTMethodLoadServiceAccount = "/loadserviceaccount"
|
|
|
|
peerRESTMethodDeleteUser = "/deleteuser"
|
|
|
|
peerRESTMethodDeleteServiceAccount = "/deleteserviceaccount"
|
|
|
|
peerRESTMethodLoadPolicy = "/loadpolicy"
|
|
|
|
peerRESTMethodLoadPolicyMapping = "/loadpolicymapping"
|
|
|
|
peerRESTMethodDeletePolicy = "/deletepolicy"
|
|
|
|
peerRESTMethodLoadGroup = "/loadgroup"
|
|
|
|
peerRESTMethodStartProfiling = "/startprofiling"
|
|
|
|
peerRESTMethodDownloadProfilingData = "/downloadprofilingdata"
|
|
|
|
peerRESTMethodReloadFormat = "/reloadformat"
|
|
|
|
peerRESTMethodCycleBloom = "/cyclebloom"
|
|
|
|
peerRESTMethodTrace = "/trace"
|
|
|
|
peerRESTMethodListen = "/listen"
|
|
|
|
peerRESTMethodLog = "/log"
|
|
|
|
peerRESTMethodGetLocalDiskIDs = "/getlocaldiskids"
|
|
|
|
peerRESTMethodGetBandwidth = "/bandwidth"
|
|
|
|
peerRESTMethodGetMetacacheListing = "/getmetacache"
|
|
|
|
peerRESTMethodUpdateMetacacheListing = "/updatemetacache"
|
2019-03-14 19:27:31 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-07-23 11:03:31 -04:00
|
|
|
peerRESTBucket = "bucket"
|
2020-10-09 23:36:00 -04:00
|
|
|
peerRESTBuckets = "buckets"
|
2020-07-23 11:03:31 -04:00
|
|
|
peerRESTUser = "user"
|
|
|
|
peerRESTGroup = "group"
|
|
|
|
peerRESTUserTemp = "user-temp"
|
|
|
|
peerRESTPolicy = "policy"
|
|
|
|
peerRESTUserOrGroup = "user-or-group"
|
|
|
|
peerRESTIsGroup = "is-group"
|
|
|
|
peerRESTSignal = "signal"
|
|
|
|
peerRESTProfiler = "profiler"
|
|
|
|
peerRESTDryRun = "dry-run"
|
|
|
|
peerRESTTraceAll = "all"
|
|
|
|
peerRESTTraceErr = "err"
|
2019-12-16 23:30:57 -05:00
|
|
|
|
2019-12-20 14:45:03 -05:00
|
|
|
peerRESTListenBucket = "bucket"
|
2019-12-16 23:30:57 -05:00
|
|
|
peerRESTListenPrefix = "prefix"
|
|
|
|
peerRESTListenSuffix = "suffix"
|
|
|
|
peerRESTListenEvents = "events"
|
2019-03-14 19:27:31 -04:00
|
|
|
)
|