Documentation ¶
Overview ¶
Returns information about custom node attributes.
Index ¶
- Variables
- type NewNodeattrs
- type Nodeattrs
- func (r Nodeattrs) Do(ctx context.Context) (Response, error)
- func (r *Nodeattrs) Header(key, value string) *Nodeattrs
- func (r *Nodeattrs) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Nodeattrs) IsSuccess(ctx context.Context) (bool, error)
- func (r Nodeattrs) Perform(ctx context.Context) (*http.Response, error)
- type Response
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 NewNodeattrs ¶
type NewNodeattrs func() *Nodeattrs
NewNodeattrs type alias for index.
func NewNodeattrsFunc ¶
func NewNodeattrsFunc(tp elastictransport.Interface) NewNodeattrs
NewNodeattrsFunc returns a new instance of Nodeattrs with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Nodeattrs ¶
type Nodeattrs struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Nodeattrs
Returns information about custom node attributes.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-nodeattrs.html
func (Nodeattrs) Do ¶
Do runs the request through the transport, handle the response and returns a nodeattrs.Response
func (*Nodeattrs) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type Response ¶ added in v8.7.0
type Response []types.NodeAttributesRecord
Click to show internal directories.
Click to hide internal directories.