Documentation
¶
Overview ¶
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
Index ¶
- Variables
- type MigrateToDataTiers
- func (r MigrateToDataTiers) Do(ctx context.Context) (*http.Response, error)
- func (r *MigrateToDataTiers) DryRun(b bool) *MigrateToDataTiers
- func (r *MigrateToDataTiers) Header(key, value string) *MigrateToDataTiers
- func (r *MigrateToDataTiers) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *MigrateToDataTiers) Raw(raw json.RawMessage) *MigrateToDataTiers
- func (r *MigrateToDataTiers) Request(req *Request) *MigrateToDataTiers
- type NewMigrateToDataTiers
- type Request
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type MigrateToDataTiers ¶
type MigrateToDataTiers struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *MigrateToDataTiers
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html
func (*MigrateToDataTiers) DryRun ¶
func (r *MigrateToDataTiers) DryRun(b bool) *MigrateToDataTiers
DryRun If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. This provides a way to retrieve the indices and ILM policies that need to be migrated. API name: dry_run
func (*MigrateToDataTiers) Header ¶
func (r *MigrateToDataTiers) Header(key, value string) *MigrateToDataTiers
Header set a key, value pair in the MigrateToDataTiers headers map.
func (*MigrateToDataTiers) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*MigrateToDataTiers) Raw ¶
func (r *MigrateToDataTiers) Raw(raw json.RawMessage) *MigrateToDataTiers
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*MigrateToDataTiers) Request ¶
func (r *MigrateToDataTiers) Request(req *Request) *MigrateToDataTiers
Request allows to set the request property with the appropriate payload.
type NewMigrateToDataTiers ¶
type NewMigrateToDataTiers func() *MigrateToDataTiers
NewMigrateToDataTiers type alias for index.
func NewMigrateToDataTiersFunc ¶
func NewMigrateToDataTiersFunc(tp elastictransport.Interface) NewMigrateToDataTiers
NewMigrateToDataTiersFunc returns a new instance of MigrateToDataTiers with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.