2024-01-19 21:27:58 -05:00
|
|
|
// Copyright (c) 2015-2024 MinIO, Inc.
|
2021-04-18 15:41:13 -04:00
|
|
|
//
|
|
|
|
// This file is part of MinIO Object Storage stack
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2019-03-14 19:27:31 -04:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
2019-11-04 12:30:59 -05:00
|
|
|
const (
|
2024-02-19 17:54:46 -05:00
|
|
|
peerRESTVersion = "v38" // Convert RPC calls
|
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 (
|
2024-02-19 17:54:46 -05:00
|
|
|
peerRESTMethodHealth = "/health"
|
|
|
|
peerRESTMethodVerifyBinary = "/verifybinary"
|
|
|
|
peerRESTMethodCommitBinary = "/commitbinary"
|
|
|
|
peerRESTMethodSignalService = "/signalservice"
|
|
|
|
peerRESTMethodBackgroundHealStatus = "/backgroundhealstatus"
|
|
|
|
peerRESTMethodGetLocks = "/getlocks"
|
|
|
|
peerRESTMethodStartProfiling = "/startprofiling"
|
|
|
|
peerRESTMethodDownloadProfilingData = "/downloadprofilingdata"
|
|
|
|
peerRESTMethodGetBandwidth = "/bandwidth"
|
|
|
|
peerRESTMethodSpeedTest = "/speedtest"
|
|
|
|
peerRESTMethodDriveSpeedTest = "/drivespeedtest"
|
|
|
|
peerRESTMethodReloadSiteReplicationConfig = "/reloadsitereplicationconfig"
|
|
|
|
peerRESTMethodGetLastDayTierStats = "/getlastdaytierstats"
|
|
|
|
peerRESTMethodDevNull = "/devnull"
|
|
|
|
peerRESTMethodNetperf = "/netperf"
|
|
|
|
peerRESTMethodGetReplicationMRF = "/getreplicationmrf"
|
2019-03-14 19:27:31 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2022-10-25 15:36:57 -04:00
|
|
|
peerRESTBucket = "bucket"
|
|
|
|
peerRESTBuckets = "buckets"
|
|
|
|
peerRESTUser = "user"
|
|
|
|
peerRESTGroup = "group"
|
|
|
|
peerRESTUserTemp = "user-temp"
|
|
|
|
peerRESTPolicy = "policy"
|
|
|
|
peerRESTUserOrGroup = "user-or-group"
|
|
|
|
peerRESTUserType = "user-type"
|
|
|
|
peerRESTIsGroup = "is-group"
|
|
|
|
peerRESTSignal = "signal"
|
|
|
|
peerRESTSubSys = "sub-sys"
|
|
|
|
peerRESTProfiler = "profiler"
|
|
|
|
peerRESTSize = "size"
|
|
|
|
peerRESTConcurrent = "concurrent"
|
|
|
|
peerRESTDuration = "duration"
|
|
|
|
peerRESTStorageClass = "storage-class"
|
2023-12-30 02:56:50 -05:00
|
|
|
peerRESTEnableSha256 = "enableSha256"
|
2022-10-25 15:36:57 -04:00
|
|
|
peerRESTMetricsTypes = "types"
|
|
|
|
peerRESTDisk = "disk"
|
2023-07-19 02:50:30 -04:00
|
|
|
peerRESTHost = "host"
|
2022-10-25 15:36:57 -04:00
|
|
|
peerRESTJobID = "job-id"
|
2022-11-14 10:16:40 -05:00
|
|
|
peerRESTDepID = "depID"
|
2022-10-25 15:36:57 -04:00
|
|
|
peerRESTStartRebalance = "start-rebalance"
|
2023-12-21 19:56:43 -05:00
|
|
|
peerRESTMetrics = "metrics"
|
2024-01-19 17:22:36 -05:00
|
|
|
peerRESTDryRun = "dry-run"
|
2019-12-16 23:30:57 -05:00
|
|
|
|
2024-01-19 21:27:58 -05:00
|
|
|
peerRESTURL = "url"
|
|
|
|
peerRESTSha256Sum = "sha256sum"
|
|
|
|
peerRESTReleaseInfo = "releaseinfo"
|
|
|
|
|
2019-12-20 14:45:03 -05:00
|
|
|
peerRESTListenBucket = "bucket"
|
2019-12-16 23:30:57 -05:00
|
|
|
peerRESTListenPrefix = "prefix"
|
|
|
|
peerRESTListenSuffix = "suffix"
|
|
|
|
peerRESTListenEvents = "events"
|
2024-02-19 17:54:46 -05:00
|
|
|
peerRESTLogMask = "log-mask"
|
2019-03-14 19:27:31 -04:00
|
|
|
)
|