First time mode for controller

- Upon first time invocation ``minio controller`` would create access keys and secret id
- Upon request passing 'keys' arg ``minio controller`` would provide the keys
- Add colorized notification
This commit is contained in:
Harshavardhana
2015-10-04 16:31:07 -07:00
parent bdd8e5873a
commit c4faf47e64
36 changed files with 2073 additions and 73 deletions

View File

@@ -24,7 +24,6 @@ import (
"os"
"github.com/gorilla/rpc/v2/json"
"github.com/minio/minio/pkg/auth"
. "gopkg.in/check.v1"
)
@@ -44,7 +43,7 @@ func (s *ControllerRPCSuite) SetUpSuite(c *C) {
root, err := ioutil.TempDir(os.TempDir(), "api-")
c.Assert(err, IsNil)
s.root = root
auth.SetAuthConfigPath(root)
SetAuthConfigPath(root)
testControllerRPC = httptest.NewServer(getControllerRPCHandler())
testServerRPC = httptest.NewUnstartedServer(getServerRPCHandler())