Documentation ¶
Overview ¶
Returns the information about configured remote clusters.
Index ¶
- Variables
- type NewRemoteInfo
- type RemoteInfo
- func (r RemoteInfo) Do(ctx context.Context) (Response, error)
- func (r *RemoteInfo) Header(key, value string) *RemoteInfo
- func (r *RemoteInfo) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r RemoteInfo) IsSuccess(ctx context.Context) (bool, error)
- func (r RemoteInfo) Perform(ctx context.Context) (*http.Response, error)
- 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 NewRemoteInfo ¶
type NewRemoteInfo func() *RemoteInfo
NewRemoteInfo type alias for index.
func NewRemoteInfoFunc ¶
func NewRemoteInfoFunc(tp elastictransport.Interface) NewRemoteInfo
NewRemoteInfoFunc returns a new instance of RemoteInfo with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type RemoteInfo ¶
type RemoteInfo struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *RemoteInfo
Returns the information about configured remote clusters.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cluster-remote-info.html
func (RemoteInfo) Do ¶
func (r RemoteInfo) Do(ctx context.Context) (Response, error)
Do runs the request through the transport, handle the response and returns a remoteinfo.Response
func (*RemoteInfo) Header ¶
func (r *RemoteInfo) Header(key, value string) *RemoteInfo
Header set a key, value pair in the RemoteInfo headers map.
func (*RemoteInfo) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.