Documentation ¶
Overview ¶
Retrieves the current index lifecycle management (ILM) status.
Index ¶
- Variables
- type GetStatus
- func (r GetStatus) Do(ctx context.Context) (*Response, error)
- func (r *GetStatus) Header(key, value string) *GetStatus
- func (r *GetStatus) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetStatus) IsSuccess(ctx context.Context) (bool, error)
- func (r GetStatus) Perform(ctx context.Context) (*http.Response, error)
- type NewGetStatus
- 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 GetStatus ¶
type GetStatus struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetStatus
Retrieves the current index lifecycle management (ILM) status.
https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html
func (GetStatus) Do ¶
Do runs the request through the transport, handle the response and returns a getstatus.Response
func (*GetStatus) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetStatus ¶
type NewGetStatus func() *GetStatus
NewGetStatus type alias for index.
func NewGetStatusFunc ¶
func NewGetStatusFunc(tp elastictransport.Interface) NewGetStatus
NewGetStatusFunc returns a new instance of GetStatus with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Response ¶ added in v8.7.0
type Response struct {
OperationMode lifecycleoperationmode.LifecycleOperationMode `json:"operation_mode"`
}