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