mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
Add auth rpc service to generate access keys, add corresponding test
This commit is contained in:
@@ -123,6 +123,12 @@ func runController(c *cli.Context) {
|
||||
Fatalln(err)
|
||||
}
|
||||
Println(string(sysinfo))
|
||||
case "auth":
|
||||
keys, err := controller.GetAuthKeys(c.Args().Tail().First())
|
||||
if err != nil {
|
||||
Fatalln(err)
|
||||
}
|
||||
Println(string(keys))
|
||||
case "donut":
|
||||
if len(c.Args()) <= 2 || c.Args().First() == "help" {
|
||||
cli.ShowCommandHelpAndExit(c, "controller", 1) // last argument is exit code
|
||||
|
||||
Reference in New Issue
Block a user