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)
|
2022-09-13 10:33:14 +00:00
|
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
2022-09-21 10:52:02 +00:00
|
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
2023-04-07 11:36:00 +00:00
|
|
|
shardsCmd.AddCommand(doctorCmd)
|
2022-05-23 16:26:27 +00:00
|
|
|
|
|
|
|
initControlShardsListCmd()
|
|
|
|
initControlSetShardModeCmd()
|
2022-09-13 10:33:14 +00:00
|
|
|
initControlEvacuateShardCmd()
|
2022-09-21 10:52:02 +00:00
|
|
|
initControlFlushCacheCmd()
|
2023-04-07 11:36:00 +00:00
|
|
|
initControlDoctorCmd()
|
2022-05-23 16:26:27 +00:00
|
|
|
}
|