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)
|
2023-05-05 07:57:07 +00:00
|
|
|
shardsCmd.AddCommand(evacuationShardCmd)
|
2022-09-21 10:52:02 +00:00
|
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
2023-04-07 11:36:00 +00:00
|
|
|
shardsCmd.AddCommand(doctorCmd)
|
2023-12-27 11:37:22 +00:00
|
|
|
shardsCmd.AddCommand(writecacheShardCmd)
|
2024-01-30 15:18:58 +00:00
|
|
|
shardsCmd.AddCommand(shardsDetachCmd)
|
2024-08-29 10:51:09 +00:00
|
|
|
shardsCmd.AddCommand(shardsRebuildCmd)
|
2022-05-23 16:26:27 +00:00
|
|
|
|
|
|
|
initControlShardsListCmd()
|
|
|
|
initControlSetShardModeCmd()
|
2023-05-05 07:57:07 +00:00
|
|
|
initControlEvacuationShardCmd()
|
2022-09-21 10:52:02 +00:00
|
|
|
initControlFlushCacheCmd()
|
2023-04-07 11:36:00 +00:00
|
|
|
initControlDoctorCmd()
|
2023-12-27 11:37:22 +00:00
|
|
|
initControlShardsWritecacheCmd()
|
2024-01-30 15:18:58 +00:00
|
|
|
initControlShardsDetachCmd()
|
2024-08-29 09:11:19 +00:00
|
|
|
initControlShardRebuildCmd()
|
2022-05-23 16:26:27 +00:00
|
|
|
}
|