923f84722a
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
27 lines
641 B
Go
27 lines
641 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)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlDumpShardCmd()
|
|
initControlRestoreShardCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlFlushCacheCmd()
|
|
}
|