Evgenii Stratonikov
b689027d57
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
29 lines
698 B
Go
29 lines
698 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(dumpShardCmd)
|
|
shardsCmd.AddCommand(restoreShardCmd)
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
|
shardsCmd.AddCommand(doctorCmd)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlDumpShardCmd()
|
|
initControlRestoreShardCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlFlushCacheCmd()
|
|
initControlDoctorCmd()
|
|
}
|