32 lines
816 B
Go
32 lines
816 B
Go
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(evacuateShardCmd)
|
|
shardsCmd.AddCommand(evacuationShardCmd)
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
|
shardsCmd.AddCommand(doctorCmd)
|
|
shardsCmd.AddCommand(writecacheShardCmd)
|
|
shardsCmd.AddCommand(shardsDetachCmd)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlEvacuationShardCmd()
|
|
initControlFlushCacheCmd()
|
|
initControlDoctorCmd()
|
|
initControlShardsWritecacheCmd()
|
|
initControlShardsDetachCmd()
|
|
initControlShardRebuildCmd()
|
|
}
|