Admin Lib: Implement Service API (#3426)

Three APIs were added to control a minio server

* NewAdminClient()
* ServiceStop()
* ServiceRestart()
* ServiceStatus()
This commit is contained in:
Anis Elleuch
2016-12-20 23:45:17 +01:00
committed by Harshavardhana
parent 4309727354
commit 329a910b86
13 changed files with 1950 additions and 0 deletions

19
pkg/madmin/constants.go Normal file
View File

@@ -0,0 +1,19 @@
/*
* Minio Cloud Storage, (C) 2016 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 madmin
const unsignedPayload = "UNSIGNED-PAYLOAD"