etcdctl: let some v3 auth related functions be private

They don't need to be public.
release-3.0
Hitoshi Mitake 2016-04-11 13:01:19 +09:00
parent 27480f9ea4
commit 097cec8194
2 changed files with 8 additions and 8 deletions

View File

@ -27,12 +27,12 @@ func NewAuthCommand() *cobra.Command {
Short: "Enable or disable authentication.",
}
ac.AddCommand(NewAuthEnableCommand())
ac.AddCommand(newAuthEnableCommand())
return ac
}
func NewAuthEnableCommand() *cobra.Command {
func newAuthEnableCommand() *cobra.Command {
return &cobra.Command{
Use: "enable",
Short: "enable authentication",

View File

@ -30,9 +30,9 @@ func NewUserCommand() *cobra.Command {
Short: "user related command",
}
ac.AddCommand(NewUserAddCommand())
ac.AddCommand(NewUserDeleteCommand())
ac.AddCommand(NewUserChangePasswordCommand())
ac.AddCommand(newUserAddCommand())
ac.AddCommand(newUserDeleteCommand())
ac.AddCommand(newUserChangePasswordCommand())
return ac
}
@ -41,7 +41,7 @@ var (
passwordInteractive bool
)
func NewUserAddCommand() *cobra.Command {
func newUserAddCommand() *cobra.Command {
cmd := cobra.Command{
Use: "add <user name>",
Short: "add a new user",
@ -53,7 +53,7 @@ func NewUserAddCommand() *cobra.Command {
return &cmd
}
func NewUserDeleteCommand() *cobra.Command {
func newUserDeleteCommand() *cobra.Command {
return &cobra.Command{
Use: "delete <user name>",
Short: "delete a user",
@ -61,7 +61,7 @@ func NewUserDeleteCommand() *cobra.Command {
}
}
func NewUserChangePasswordCommand() *cobra.Command {
func newUserChangePasswordCommand() *cobra.Command {
cmd := cobra.Command{
Use: "passwd <user name>",
Short: "change password of user",