Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Init = &cobra.Command{ Use: "init", Short: "Generates a new config and then starts zookeeper.", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { return zkd.Init() }, }
View Source
var ( Root = &cobra.Command{ Use: "zkctl", Short: "Initializes and controls zookeeper with Vitess-specific configuration.", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if err := servenv.CobraPreRunE(cmd, args); err != nil { return err } zkConfig := zkctl.MakeZkConfigFromString(zkCfg, uint32(myID)) zkConfig.Extra = zkExtra zkd = zkctl.NewZkd(zkConfig) return nil }, PersistentPostRun: func(cmd *cobra.Command, args []string) { logutil.Flush() }, } )
View Source
var Shutdown = &cobra.Command{ Use: "shutdown", Short: "Terminates a zookeeper server but keeps its data dir intact.", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { return zkd.Shutdown() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.