getrollupcaps

package
v8.4.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Overview

Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.

Index

Constants

This section is empty.

Variables

View Source
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 GetRollupCaps

type GetRollupCaps struct {
	// contains filtered or unexported fields
}

func New

Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.

https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html

func (GetRollupCaps) Do

Do runs the http.Request through the provided transport.

func (*GetRollupCaps) Header

func (r *GetRollupCaps) Header(key, value string) *GetRollupCaps

Header set a key, value pair in the GetRollupCaps headers map.

func (*GetRollupCaps) HttpRequest

func (r *GetRollupCaps) HttpRequest(ctx context.Context) (*http.Request, error)

HttpRequest returns the http.Request object built from the given parameters.

func (*GetRollupCaps) Id

Id The ID of the index to check rollup capabilities on, or left blank for all jobs API Name: id

func (GetRollupCaps) IsSuccess

func (r GetRollupCaps) IsSuccess(ctx context.Context) (bool, error)

IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.

type NewGetRollupCaps

type NewGetRollupCaps func() *GetRollupCaps

NewGetRollupCaps type alias for index.

func NewGetRollupCapsFunc

func NewGetRollupCapsFunc(tp elastictransport.Interface) NewGetRollupCaps

NewGetRollupCapsFunc returns a new instance of GetRollupCaps with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL