forked from TrueCloudLab/frostfs-node
Evgenii Stratonikov
8466894fdf
We have `Evacuate` with a cleaner interface. Also, remove them from CLI and engine. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
25 lines
566 B
Go
25 lines
566 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(flushCacheCmd)
|
|
shardsCmd.AddCommand(doctorCmd)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlFlushCacheCmd()
|
|
initControlDoctorCmd()
|
|
}
|