Documentation ¶
Overview ¶
Updates the data lifecycle of the selected data streams.
Index ¶
- Variables
- type NewPutDataLifecycle
- type PutDataLifecycle
- func (r PutDataLifecycle) Do(ctx context.Context) (*Response, error)
- func (r *PutDataLifecycle) ExpandWildcards(v string) *PutDataLifecycle
- func (r *PutDataLifecycle) Header(key, value string) *PutDataLifecycle
- func (r *PutDataLifecycle) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *PutDataLifecycle) MasterTimeout(v string) *PutDataLifecycle
- func (r *PutDataLifecycle) Name(v string) *PutDataLifecycle
- func (r PutDataLifecycle) Perform(ctx context.Context) (*http.Response, error)
- func (r *PutDataLifecycle) Raw(raw io.Reader) *PutDataLifecycle
- func (r *PutDataLifecycle) Request(req *Request) *PutDataLifecycle
- func (r *PutDataLifecycle) Timeout(v string) *PutDataLifecycle
- type Request
- 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 NewPutDataLifecycle ¶
type NewPutDataLifecycle func(name string) *PutDataLifecycle
NewPutDataLifecycle type alias for index.
func NewPutDataLifecycleFunc ¶
func NewPutDataLifecycleFunc(tp elastictransport.Interface) NewPutDataLifecycle
NewPutDataLifecycleFunc returns a new instance of PutDataLifecycle with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type PutDataLifecycle ¶
type PutDataLifecycle struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *PutDataLifecycle
Updates the data lifecycle of the selected data streams.
https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-put-lifecycle.html
func (PutDataLifecycle) Do ¶
func (r PutDataLifecycle) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a putdatalifecycle.Response
func (*PutDataLifecycle) ExpandWildcards ¶
func (r *PutDataLifecycle) ExpandWildcards(v string) *PutDataLifecycle
ExpandWildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) API name: expand_wildcards
func (*PutDataLifecycle) Header ¶
func (r *PutDataLifecycle) Header(key, value string) *PutDataLifecycle
Header set a key, value pair in the PutDataLifecycle headers map.
func (*PutDataLifecycle) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*PutDataLifecycle) MasterTimeout ¶
func (r *PutDataLifecycle) MasterTimeout(v string) *PutDataLifecycle
MasterTimeout Specify timeout for connection to master API name: master_timeout
func (*PutDataLifecycle) Name ¶
func (r *PutDataLifecycle) Name(v string) *PutDataLifecycle
Name A comma-separated list of data streams whose lifecycle will be updated; use `*` to set the lifecycle to all data streams API Name: name
func (PutDataLifecycle) Perform ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*PutDataLifecycle) Raw ¶
func (r *PutDataLifecycle) Raw(raw io.Reader) *PutDataLifecycle
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*PutDataLifecycle) Request ¶
func (r *PutDataLifecycle) Request(req *Request) *PutDataLifecycle
Request allows to set the request property with the appropriate payload.
func (*PutDataLifecycle) Timeout ¶
func (r *PutDataLifecycle) Timeout(v string) *PutDataLifecycle
Timeout Explicit timestamp for the document API name: timeout