mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: let some v3 auth related functions be private
They don't need to be public.
This commit is contained in:
parent
27480f9ea4
commit
097cec8194
@ -27,12 +27,12 @@ func NewAuthCommand() *cobra.Command {
|
|||||||
Short: "Enable or disable authentication.",
|
Short: "Enable or disable authentication.",
|
||||||
}
|
}
|
||||||
|
|
||||||
ac.AddCommand(NewAuthEnableCommand())
|
ac.AddCommand(newAuthEnableCommand())
|
||||||
|
|
||||||
return ac
|
return ac
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAuthEnableCommand() *cobra.Command {
|
func newAuthEnableCommand() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "enable",
|
Use: "enable",
|
||||||
Short: "enable authentication",
|
Short: "enable authentication",
|
||||||
|
@ -30,9 +30,9 @@ func NewUserCommand() *cobra.Command {
|
|||||||
Short: "user related command",
|
Short: "user related command",
|
||||||
}
|
}
|
||||||
|
|
||||||
ac.AddCommand(NewUserAddCommand())
|
ac.AddCommand(newUserAddCommand())
|
||||||
ac.AddCommand(NewUserDeleteCommand())
|
ac.AddCommand(newUserDeleteCommand())
|
||||||
ac.AddCommand(NewUserChangePasswordCommand())
|
ac.AddCommand(newUserChangePasswordCommand())
|
||||||
|
|
||||||
return ac
|
return ac
|
||||||
}
|
}
|
||||||
@ -41,7 +41,7 @@ var (
|
|||||||
passwordInteractive bool
|
passwordInteractive bool
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewUserAddCommand() *cobra.Command {
|
func newUserAddCommand() *cobra.Command {
|
||||||
cmd := cobra.Command{
|
cmd := cobra.Command{
|
||||||
Use: "add <user name>",
|
Use: "add <user name>",
|
||||||
Short: "add a new user",
|
Short: "add a new user",
|
||||||
@ -53,7 +53,7 @@ func NewUserAddCommand() *cobra.Command {
|
|||||||
return &cmd
|
return &cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewUserDeleteCommand() *cobra.Command {
|
func newUserDeleteCommand() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "delete <user name>",
|
Use: "delete <user name>",
|
||||||
Short: "delete a user",
|
Short: "delete a user",
|
||||||
@ -61,7 +61,7 @@ func NewUserDeleteCommand() *cobra.Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewUserChangePasswordCommand() *cobra.Command {
|
func newUserChangePasswordCommand() *cobra.Command {
|
||||||
cmd := cobra.Command{
|
cmd := cobra.Command{
|
||||||
Use: "passwd <user name>",
|
Use: "passwd <user name>",
|
||||||
Short: "change password of user",
|
Short: "change password of user",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user