Documentation ¶
Overview ¶
Updates index aliases.
Index ¶
- Variables
- type NewUpdateAliases
- type Request
- type RequestBuilder
- type UpdateAliases
- func (r UpdateAliases) Do(ctx context.Context) (*http.Response, error)
- func (r *UpdateAliases) Header(key, value string) *UpdateAliases
- func (r *UpdateAliases) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *UpdateAliases) MasterTimeout(value string) *UpdateAliases
- func (r *UpdateAliases) Raw(raw json.RawMessage) *UpdateAliases
- func (r *UpdateAliases) Request(req *Request) *UpdateAliases
- func (r *UpdateAliases) Timeout(value string) *UpdateAliases
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 NewUpdateAliases ¶
type NewUpdateAliases func() *UpdateAliases
NewUpdateAliases type alias for index.
func NewUpdateAliasesFunc ¶
func NewUpdateAliasesFunc(tp elastictransport.Interface) NewUpdateAliases
NewUpdateAliasesFunc returns a new instance of UpdateAliases with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type RequestBuilder ¶
type RequestBuilder struct {
// contains filtered or unexported fields
}
RequestBuilder is the builder API for the updatealiases.Request
func NewRequestBuilder ¶
func NewRequestBuilder() *RequestBuilder
NewRequest returns a RequestBuilder which can be chained and built to retrieve a RequestBuilder
func (*RequestBuilder) Actions ¶
func (rb *RequestBuilder) Actions(actions []types.ActionBuilder) *RequestBuilder
func (*RequestBuilder) Build ¶
func (rb *RequestBuilder) Build() *Request
Build finalize the chain and returns the Request struct.
type UpdateAliases ¶
type UpdateAliases struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *UpdateAliases
Updates index aliases.
https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
func (*UpdateAliases) Header ¶
func (r *UpdateAliases) Header(key, value string) *UpdateAliases
Header set a key, value pair in the UpdateAliases headers map.
func (*UpdateAliases) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*UpdateAliases) MasterTimeout ¶
func (r *UpdateAliases) MasterTimeout(value string) *UpdateAliases
MasterTimeout Specify timeout for connection to master API name: master_timeout
func (*UpdateAliases) Raw ¶
func (r *UpdateAliases) Raw(raw json.RawMessage) *UpdateAliases
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*UpdateAliases) Request ¶
func (r *UpdateAliases) Request(req *Request) *UpdateAliases
Request allows to set the request property with the appropriate payload.
func (*UpdateAliases) Timeout ¶
func (r *UpdateAliases) Timeout(value string) *UpdateAliases
Timeout Request timeout API name: timeout