Documentation ¶
Overview ¶
Resets an existing transform.
Index ¶
- Variables
- type NewResetTransform
- type ResetTransform
- func (r ResetTransform) Do(providedCtx context.Context) (*Response, error)
- func (r *ResetTransform) Force(force bool) *ResetTransform
- func (r *ResetTransform) Header(key, value string) *ResetTransform
- func (r *ResetTransform) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r ResetTransform) IsSuccess(providedCtx context.Context) (bool, error)
- func (r ResetTransform) Perform(providedCtx 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 NewResetTransform ¶
type NewResetTransform func(transformid string) *ResetTransform
NewResetTransform type alias for index.
func NewResetTransformFunc ¶
func NewResetTransformFunc(tp elastictransport.Interface) NewResetTransform
NewResetTransformFunc returns a new instance of ResetTransform with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type ResetTransform ¶
type ResetTransform struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *ResetTransform
Resets an existing transform.
https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html
func (ResetTransform) Do ¶
func (r ResetTransform) Do(providedCtx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a resettransform.Response
func (*ResetTransform) Force ¶
func (r *ResetTransform) Force(force bool) *ResetTransform
Force If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform must be stopped before it can be reset. API name: force
func (*ResetTransform) Header ¶
func (r *ResetTransform) Header(key, value string) *ResetTransform
Header set a key, value pair in the ResetTransform headers map.
func (*ResetTransform) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.