Documentation ¶
Overview ¶
Deletes auto-follow patterns.
Index ¶
- Variables
- type DeleteAutoFollowPattern
- func (r DeleteAutoFollowPattern) Do(ctx context.Context) (*http.Response, error)
- func (r *DeleteAutoFollowPattern) Header(key, value string) *DeleteAutoFollowPattern
- func (r *DeleteAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r DeleteAutoFollowPattern) IsSuccess(ctx context.Context) (bool, error)
- func (r *DeleteAutoFollowPattern) Name(v string) *DeleteAutoFollowPattern
- type NewDeleteAutoFollowPattern
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 DeleteAutoFollowPattern ¶
type DeleteAutoFollowPattern struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteAutoFollowPattern
Deletes auto-follow patterns.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ccr-delete-auto-follow-pattern.html
func (*DeleteAutoFollowPattern) Header ¶
func (r *DeleteAutoFollowPattern) Header(key, value string) *DeleteAutoFollowPattern
Header set a key, value pair in the DeleteAutoFollowPattern headers map.
func (*DeleteAutoFollowPattern) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (DeleteAutoFollowPattern) IsSuccess ¶
func (r DeleteAutoFollowPattern) 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 (*DeleteAutoFollowPattern) Name ¶
func (r *DeleteAutoFollowPattern) Name(v string) *DeleteAutoFollowPattern
Name The name of the auto follow pattern. API Name: name
type NewDeleteAutoFollowPattern ¶
type NewDeleteAutoFollowPattern func(name string) *DeleteAutoFollowPattern
NewDeleteAutoFollowPattern type alias for index.
func NewDeleteAutoFollowPatternFunc ¶
func NewDeleteAutoFollowPatternFunc(tp elastictransport.Interface) NewDeleteAutoFollowPattern
NewDeleteAutoFollowPatternFunc returns a new instance of DeleteAutoFollowPattern with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.