notifications

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

func New

func New(action string, notificationSettings *types.NotificationSettings) (*Notifier, error)

func (*Notifier) JobCompleted

func (n *Notifier) JobCompleted(ctx contexts.Context, id string, volumes []string, err error) error

func (*Notifier) JobStarted

func (n *Notifier) JobStarted(ctx contexts.Context, id string, volumes []string) error

func (*Notifier) NextBackupSchedule

func (n *Notifier) NextBackupSchedule(ctx contexts.Context, next time.Time) error

func (*Notifier) Send

func (n *Notifier) Send(msg string) error

func (*Notifier) TaskCompleted

func (n *Notifier) TaskCompleted(ctx contexts.Context, id string, volume string, err error) error

func (*Notifier) TaskStarted

func (n *Notifier) TaskStarted(ctx contexts.Context, id string, volume string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL