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