Documentation ¶
Index ¶
- type NotificationSettings
- type Notifier
- func (n *Notifier) JobCompleted(ctx context.Context, action string, id string, volumes []string, ...)
- func (n *Notifier) JobStarted(ctx context.Context, action string, id string, volumes []string)
- func (n *Notifier) NextBackupSchedule(ctx context.Context, next time.Time)
- func (n *Notifier) Send(ctx context.Context, msg string)
- func (n *Notifier) TaskCompleted(ctx context.Context, action string, id string, volume string, ...)
- func (n *Notifier) TaskStarted(ctx context.Context, id string, volume string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationSettings ¶ added in v0.1.1
type NotificationSettings struct { NotificationUrls []string `json:"notification-urls"` NotifyJobStarted bool `json:"notify-job-started"` NotifyJobCompleted bool `json:"notify-job-completed"` NotifyJobError bool `json:"notify-job-error"` NotifyTaskStarted bool `json:"notify-task-started"` NotifyTaskCompleted bool `json:"notify-task-completed"` NotifyTaskError bool `json:"notify-task-error"` }
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func (*Notifier) JobCompleted ¶
func (*Notifier) JobStarted ¶
func (*Notifier) NextBackupSchedule ¶
func (*Notifier) TaskCompleted ¶
Click to show internal directories.
Click to hide internal directories.