etcdctlv3: support tls

Fixes #4299
This commit is contained in:
Anthony Romano
2016-01-28 16:11:51 -08:00
parent f37c896159
commit 781bf625af
2 changed files with 25 additions and 1 deletions

View File

@ -43,6 +43,10 @@ var (
func init() {
rootCmd.PersistentFlags().StringVar(&globalFlags.Endpoints, "endpoint", "127.0.0.1:2378", "gRPC endpoint")
rootCmd.PersistentFlags().StringVar(&globalFlags.TLS.CertFile, "cert", "", "identify HTTPS client using this SSL certificate file")
rootCmd.PersistentFlags().StringVar(&globalFlags.TLS.KeyFile, "key", "", "identify HTTPS client using this SSL key file")
rootCmd.PersistentFlags().StringVar(&globalFlags.TLS.CAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
rootCmd.AddCommand(
command.NewRangeCommand(),
command.NewPutCommand(),