mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
a6c146bd00
``` mc admin config set alias/ storage_class standard=EC:3 ``` should only succeed if parity ratio is valid for all server pools, if not we should fail proactively. This PR also needs to bring other changes now that we need to cater for variadic drive counts per pool. Bonus fixes also various bugs reproduced with - GetObjectWithPartNumber() - CopyObjectPartWithOffsets() - CopyObjectWithMetadata() - PutObjectPart,PutObject with truncated streams
83 lines
3.3 KiB
Go
83 lines
3.3 KiB
Go
/*
|
|
* MinIO Cloud Storage, (C) 2019 MinIO, Inc.
|
|
*
|
|
* 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
|
|
|
|
const (
|
|
peerRESTVersion = "v12"
|
|
peerRESTVersionPrefix = SlashSeparator + peerRESTVersion
|
|
peerRESTPrefix = minioReservedBucketPath + "/peer"
|
|
peerRESTPath = peerRESTPrefix + peerRESTVersionPrefix
|
|
)
|
|
|
|
const (
|
|
peerRESTMethodHealth = "/health"
|
|
peerRESTMethodServerInfo = "/serverinfo"
|
|
peerRESTMethodDriveInfo = "/driveinfo"
|
|
peerRESTMethodNetInfo = "/netinfo"
|
|
peerRESTMethodCPUInfo = "/cpuinfo"
|
|
peerRESTMethodDiskHwInfo = "/diskhwinfo"
|
|
peerRESTMethodOsInfo = "/osinfo"
|
|
peerRESTMethodMemInfo = "/meminfo"
|
|
peerRESTMethodProcInfo = "/procinfo"
|
|
peerRESTMethodDispatchNetInfo = "/dispatchnetinfo"
|
|
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"
|
|
peerRESTMethodCycleBloom = "/cyclebloom"
|
|
peerRESTMethodTrace = "/trace"
|
|
peerRESTMethodListen = "/listen"
|
|
peerRESTMethodLog = "/log"
|
|
peerRESTMethodGetLocalDiskIDs = "/getlocaldiskids"
|
|
peerRESTMethodGetBandwidth = "/bandwidth"
|
|
peerRESTMethodGetMetacacheListing = "/getmetacache"
|
|
peerRESTMethodUpdateMetacacheListing = "/updatemetacache"
|
|
peerRESTMethodGetPeerMetrics = "/peermetrics"
|
|
)
|
|
|
|
const (
|
|
peerRESTBucket = "bucket"
|
|
peerRESTBuckets = "buckets"
|
|
peerRESTUser = "user"
|
|
peerRESTGroup = "group"
|
|
peerRESTUserTemp = "user-temp"
|
|
peerRESTPolicy = "policy"
|
|
peerRESTUserOrGroup = "user-or-group"
|
|
peerRESTIsGroup = "is-group"
|
|
peerRESTSignal = "signal"
|
|
peerRESTProfiler = "profiler"
|
|
peerRESTTraceAll = "all"
|
|
peerRESTTraceErr = "err"
|
|
|
|
peerRESTListenBucket = "bucket"
|
|
peerRESTListenPrefix = "prefix"
|
|
peerRESTListenSuffix = "suffix"
|
|
peerRESTListenEvents = "events"
|
|
)
|