Merge pull request #3356 from xiang90/travis

*: test gofmt with -s and fix reported issues
This commit is contained in:
Xiang Li
2015-08-21 18:59:51 -07:00
35 changed files with 266 additions and 266 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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{

View File

@@ -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,