Documentation ¶
Overview ¶
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
Index ¶
- Variables
- type NewUnfollow
- type Response
- type Unfollow
- func (r Unfollow) Do(ctx context.Context) (*Response, error)
- func (r *Unfollow) Header(key, value string) *Unfollow
- func (r *Unfollow) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Unfollow) IsSuccess(ctx context.Context) (bool, error)
- func (r Unfollow) 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 NewUnfollow ¶
NewUnfollow type alias for index.
func NewUnfollowFunc ¶
func NewUnfollowFunc(tp elastictransport.Interface) NewUnfollow
NewUnfollowFunc returns a new instance of Unfollow 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 struct { // Acknowledged For a successful response, this value is always true. On failure, an // exception is returned instead. Acknowledged bool `json:"acknowledged"` }
Response holds the response body struct for the package unfollow
type Unfollow ¶
type Unfollow struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Unfollow
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html
func (Unfollow) Do ¶
Do runs the request through the transport, handle the response and returns a unfollow.Response
func (*Unfollow) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.