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