| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2019-04-10 02:39:42 +08:00
										 |  |  |  * MinIO Cloud Storage, (C) 2019 MinIO, Inc. | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08: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-06-07 08:46:22 +08:00
										 |  |  | const peerRESTVersion = "v2" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | const peerRESTPath = minioReservedBucketPath + "/peer/" + peerRESTVersion | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ( | 
					
						
							|  |  |  | 	peerRESTMethodServerInfo               = "serverinfo" | 
					
						
							|  |  |  | 	peerRESTMethodCPULoadInfo              = "cpuloadinfo" | 
					
						
							|  |  |  | 	peerRESTMethodMemUsageInfo             = "memusageinfo" | 
					
						
							|  |  |  | 	peerRESTMethodDrivePerfInfo            = "driveperfinfo" | 
					
						
							|  |  |  | 	peerRESTMethodDeleteBucket             = "deletebucket" | 
					
						
							|  |  |  | 	peerRESTMethodSignalService            = "signalservice" | 
					
						
							| 
									
										
										
										
											2019-06-26 07:42:24 +08:00
										 |  |  | 	peerRESTMethodBackgroundHealStatus     = "backgroundhealstatus" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | 	peerRESTMethodGetLocks                 = "getlocks" | 
					
						
							|  |  |  | 	peerRESTMethodBucketPolicyRemove       = "removebucketpolicy" | 
					
						
							| 
									
										
										
										
											2019-06-07 08:46:22 +08:00
										 |  |  | 	peerRESTMethodLoadUser                 = "loaduser" | 
					
						
							|  |  |  | 	peerRESTMethodDeleteUser               = "deleteuser" | 
					
						
							|  |  |  | 	peerRESTMethodLoadPolicy               = "loadpolicy" | 
					
						
							|  |  |  | 	peerRESTMethodDeletePolicy             = "deletepolicy" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | 	peerRESTMethodLoadUsers                = "loadusers" | 
					
						
							|  |  |  | 	peerRESTMethodStartProfiling           = "startprofiling" | 
					
						
							|  |  |  | 	peerRESTMethodDownloadProfilingData    = "downloadprofilingdata" | 
					
						
							|  |  |  | 	peerRESTMethodBucketPolicySet          = "setbucketpolicy" | 
					
						
							|  |  |  | 	peerRESTMethodBucketNotificationPut    = "putbucketnotification" | 
					
						
							|  |  |  | 	peerRESTMethodBucketNotificationListen = "listenbucketnotification" | 
					
						
							|  |  |  | 	peerRESTMethodReloadFormat             = "reloadformat" | 
					
						
							|  |  |  | 	peerRESTMethodTargetExists             = "targetexists" | 
					
						
							|  |  |  | 	peerRESTMethodSendEvent                = "sendevent" | 
					
						
							| 
									
										
										
										
											2019-06-09 06:54:41 +08:00
										 |  |  | 	peerRESTMethodTrace                    = "trace" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ( | 
					
						
							|  |  |  | 	peerRESTBucket   = "bucket" | 
					
						
							| 
									
										
										
										
											2019-06-07 08:46:22 +08:00
										 |  |  | 	peerRESTUser     = "user" | 
					
						
							|  |  |  | 	peerRESTUserTemp = "user-temp" | 
					
						
							|  |  |  | 	peerRESTPolicy   = "policy" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | 	peerRESTSignal   = "signal" | 
					
						
							|  |  |  | 	peerRESTProfiler = "profiler" | 
					
						
							|  |  |  | 	peerRESTDryRun   = "dry-run" | 
					
						
							| 
									
										
										
										
											2019-06-09 06:54:41 +08:00
										 |  |  | 	peerRESTTraceAll = "all" | 
					
						
							| 
									
										
										
										
											2019-03-15 07:27:31 +08:00
										 |  |  | ) |