mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3356 from xiang90/travis
*: test gofmt with -s and fix reported issues
This commit is contained in:
@@ -29,12 +29,12 @@ func NewAuthCommands() cli.Command {
|
||||
Name: "auth",
|
||||
Usage: "overall auth controls",
|
||||
Subcommands: []cli.Command{
|
||||
cli.Command{
|
||||
{
|
||||
Name: "enable",
|
||||
Usage: "enable auth access controls",
|
||||
Action: actionAuthEnable,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "disable",
|
||||
Usage: "disable auth access controls",
|
||||
Action: actionAuthDisable,
|
||||
|
||||
@@ -29,22 +29,22 @@ func NewMemberCommand() cli.Command {
|
||||
Name: "member",
|
||||
Usage: "member add, remove and list subcommands",
|
||||
Subcommands: []cli.Command{
|
||||
cli.Command{
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "enumerate existing cluster members",
|
||||
Action: actionMemberList,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "add",
|
||||
Usage: "add a new member to the etcd cluster",
|
||||
Action: actionMemberAdd,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "remove",
|
||||
Usage: "remove an existing member from the etcd cluster",
|
||||
Action: actionMemberRemove,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "update",
|
||||
Usage: "update an existing member in the etcd cluster",
|
||||
Action: actionMemberUpdate,
|
||||
|
||||
@@ -31,27 +31,27 @@ func NewRoleCommands() cli.Command {
|
||||
Name: "role",
|
||||
Usage: "role add, grant and revoke subcommands",
|
||||
Subcommands: []cli.Command{
|
||||
cli.Command{
|
||||
{
|
||||
Name: "add",
|
||||
Usage: "add a new role for the etcd cluster",
|
||||
Action: actionRoleAdd,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "get",
|
||||
Usage: "get details for a role",
|
||||
Action: actionRoleGet,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "list all roles",
|
||||
Action: actionRoleList,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "remove",
|
||||
Usage: "remove a role from the etcd cluster",
|
||||
Action: actionRoleRemove,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "grant",
|
||||
Usage: "grant path matches to an etcd role",
|
||||
Flags: []cli.Flag{
|
||||
@@ -62,7 +62,7 @@ func NewRoleCommands() cli.Command {
|
||||
},
|
||||
Action: actionRoleGrant,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "revoke",
|
||||
Usage: "revoke path matches for an etcd role",
|
||||
Flags: []cli.Flag{
|
||||
|
||||
@@ -32,39 +32,39 @@ func NewUserCommands() cli.Command {
|
||||
Name: "user",
|
||||
Usage: "user add, grant and revoke subcommands",
|
||||
Subcommands: []cli.Command{
|
||||
cli.Command{
|
||||
{
|
||||
Name: "add",
|
||||
Usage: "add a new user for the etcd cluster",
|
||||
Action: actionUserAdd,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "get",
|
||||
Usage: "get details for a user",
|
||||
Action: actionUserGet,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "list all current users",
|
||||
Action: actionUserList,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "remove",
|
||||
Usage: "remove a user for the etcd cluster",
|
||||
Action: actionUserRemove,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "grant",
|
||||
Usage: "grant roles to an etcd user",
|
||||
Flags: []cli.Flag{cli.StringSliceFlag{Name: "roles", Value: new(cli.StringSlice), Usage: "List of roles to grant or revoke"}},
|
||||
Action: actionUserGrant,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "revoke",
|
||||
Usage: "revoke roles for an etcd user",
|
||||
Flags: []cli.Flag{cli.StringSliceFlag{Name: "roles", Value: new(cli.StringSlice), Usage: "List of roles to grant or revoke"}},
|
||||
Action: actionUserRevoke,
|
||||
},
|
||||
cli.Command{
|
||||
{
|
||||
Name: "passwd",
|
||||
Usage: "change password for a user",
|
||||
Action: actionUserPasswd,
|
||||
|
||||
Reference in New Issue
Block a user