Documentation ¶
Index ¶
- func DryRunTable()
- func MoveCommandsToTable(input []MoveCommand)
- func RebalanceInfoToTable(input rebalanceInfo)
- func RerouteResponseToTable(input rerouteResponse)
- func SettingsToTable(input map[string]interface{})
- func ShardsAvailableForMoveToTable(input []shard)
- type Elastic
- func (e Elastic) ExecuteMoveCommands(url string, moveCommands ShardsReroute, dryRun bool) rerouteResponse
- func (e Elastic) GetDiskSpaceInfo(url string, allowedPercentOfDifference int, fromNode string, toNode string) rebalanceInfo
- func (e Elastic) GetShardsInfo(url string, diskSpaceInfo rebalanceInfo, shardsToMove int) []shard
- func (e Elastic) PrepareMoveCommand(shards []shard, fromNode, toNode string) ShardsReroute
- type Logger
- type MoveCommand
- type ShardsReroute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DryRunTable ¶
func DryRunTable()
func MoveCommandsToTable ¶
func MoveCommandsToTable(input []MoveCommand)
func RebalanceInfoToTable ¶
func RebalanceInfoToTable(input rebalanceInfo)
func RerouteResponseToTable ¶
func RerouteResponseToTable(input rerouteResponse)
func SettingsToTable ¶
func SettingsToTable(input map[string]interface{})
func ShardsAvailableForMoveToTable ¶
func ShardsAvailableForMoveToTable(input []shard)
Types ¶
type Elastic ¶
type Elastic struct { Logger *Logger HttpClient *http.Client HttpUsername string HttpPassword string }
func (Elastic) ExecuteMoveCommands ¶
func (e Elastic) ExecuteMoveCommands(url string, moveCommands ShardsReroute, dryRun bool) rerouteResponse
func (Elastic) GetDiskSpaceInfo ¶
func (e Elastic) GetDiskSpaceInfo(url string, allowedPercentOfDifference int, fromNode string, toNode string) rebalanceInfo
GetDiskSpaceInfo func
func (Elastic) GetShardsInfo ¶
func (Elastic) PrepareMoveCommand ¶
func (e Elastic) PrepareMoveCommand(shards []shard, fromNode, toNode string) ShardsReroute
type MoveCommand ¶
type ShardsReroute ¶
type ShardsReroute struct {
Commands []MoveCommand `json:"commands"`
}
Click to show internal directories.
Click to hide internal directories.