2022-05-23 16:26:27 +00:00
|
|
|
package control
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var shardsCmd = &cobra.Command{
|
|
|
|
Use: "shards",
|
|
|
|
Short: "Operations with storage node's shards",
|
|
|
|
Long: "Operations with storage node's shards",
|
|
|
|
}
|
|
|
|
|
|
|
|
func initControlShardsCmd() {
|
|
|
|
shardsCmd.AddCommand(listShardsCmd)
|
|
|
|
shardsCmd.AddCommand(setShardModeCmd)
|
|
|
|
shardsCmd.AddCommand(dumpShardCmd)
|
|
|
|
shardsCmd.AddCommand(restoreShardCmd)
|
2022-09-13 10:33:14 +00:00
|
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
2022-05-23 16:26:27 +00:00
|
|
|
|
|
|
|
initControlShardsListCmd()
|
|
|
|
initControlSetShardModeCmd()
|
|
|
|
initControlDumpShardCmd()
|
|
|
|
initControlRestoreShardCmd()
|
2022-09-13 10:33:14 +00:00
|
|
|
initControlEvacuateShardCmd()
|
2022-05-23 16:26:27 +00:00
|
|
|
}
|