Documentation ¶
Overview ¶
Migrates an alias to a data stream
Index ¶
- Variables
- type MigrateToDataStream
- func (r MigrateToDataStream) Do(ctx context.Context) (*Response, error)
- func (r *MigrateToDataStream) Header(key, value string) *MigrateToDataStream
- func (r *MigrateToDataStream) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r MigrateToDataStream) IsSuccess(ctx context.Context) (bool, error)
- func (r MigrateToDataStream) Perform(ctx context.Context) (*http.Response, error)
- type NewMigrateToDataStream
- type Response
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 MigrateToDataStream ¶
type MigrateToDataStream struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *MigrateToDataStream
Migrates an alias to a data stream
https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html
func (MigrateToDataStream) Do ¶
func (r MigrateToDataStream) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a migratetodatastream.Response
func (*MigrateToDataStream) Header ¶
func (r *MigrateToDataStream) Header(key, value string) *MigrateToDataStream
Header set a key, value pair in the MigrateToDataStream headers map.
func (*MigrateToDataStream) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewMigrateToDataStream ¶
type NewMigrateToDataStream func(name string) *MigrateToDataStream
NewMigrateToDataStream type alias for index.
func NewMigrateToDataStreamFunc ¶
func NewMigrateToDataStreamFunc(tp elastictransport.Interface) NewMigrateToDataStream
NewMigrateToDataStreamFunc returns a new instance of MigrateToDataStream with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.