Documentation ¶
Overview ¶
Returns information about the tasks currently executing on one or more nodes in the cluster.
Index ¶
- Variables
- type NewTasks
- type Response
- type Tasks
- func (r *Tasks) Actions(v string) *Tasks
- func (r *Tasks) Detailed(b bool) *Tasks
- func (r Tasks) Do(ctx context.Context) (Response, error)
- func (r *Tasks) Header(key, value string) *Tasks
- func (r *Tasks) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Tasks) IsSuccess(ctx context.Context) (bool, error)
- func (r *Tasks) NodeId(v string) *Tasks
- func (r *Tasks) ParentTask(v string) *Tasks
- func (r Tasks) Perform(ctx context.Context) (*http.Response, error)
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 NewTasks ¶
type NewTasks func() *Tasks
NewTasks type alias for index.
func NewTasksFunc ¶
func NewTasksFunc(tp elastictransport.Interface) NewTasks
NewTasksFunc returns a new instance of Tasks 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 []types.TasksRecord
type Tasks ¶
type Tasks struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Tasks
Returns information about the tasks currently executing on one or more nodes in the cluster.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/tasks.html
func (*Tasks) Actions ¶
Actions A comma-separated list of actions that should be returned. Leave empty to return all. API name: actions
func (*Tasks) Detailed ¶
Detailed Return detailed task information (default: false) API name: detailed
func (Tasks) Do ¶
Do runs the request through the transport, handle the response and returns a tasks.Response
func (*Tasks) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.