postvotingconfigexclusions

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Updates the cluster voting config exclusions by node ids or node names.

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 NewPostVotingConfigExclusions

type NewPostVotingConfigExclusions func() *PostVotingConfigExclusions

NewPostVotingConfigExclusions type alias for index.

func NewPostVotingConfigExclusionsFunc

func NewPostVotingConfigExclusionsFunc(tp elastictransport.Interface) NewPostVotingConfigExclusions

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

type PostVotingConfigExclusions

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

func (PostVotingConfigExclusions) Do

Do runs the request through the transport, handle the response and returns a postvotingconfigexclusions.Response

func (*PostVotingConfigExclusions) Header

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

func (*PostVotingConfigExclusions) HttpRequest

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

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

func (PostVotingConfigExclusions) IsSuccess

func (r PostVotingConfigExclusions) 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.

func (*PostVotingConfigExclusions) NodeIds

NodeIds A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify node_names. API name: node_ids

func (*PostVotingConfigExclusions) NodeNames

NodeNames A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify node_ids. API name: node_names

func (PostVotingConfigExclusions) Perform

Perform runs the http.Request through the provided transport and returns an http.Response.

func (*PostVotingConfigExclusions) Timeout

Timeout When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error. API name: timeout

type Response

type Response struct {
}

func NewResponse

func NewResponse() *Response

NewResponse returns a Response

Jump to

Keyboard shortcuts

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