reporter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mailer Mailer
}

Config is the configuration for the reporter.

type Mailer

type Mailer interface {
	SendMail(from string, to []string, subject, body string, attachments []string) error
}

Mailer is a mailer interface.

type Reporter

type Reporter struct {
	*Config
}

Reporter is responsible for reporting the status of the scheduler to the user.

func (*Reporter) ReportStep

func (rp *Reporter) ReportStep(d *dag.DAG, status *model.Status, node *scheduler.Node) error

ReportStep is a function that reports the status of a step.

func (*Reporter) ReportSummary

func (rp *Reporter) ReportSummary(status *model.Status, err error)

ReportSummary is a function that reports the status of the scheduler.

func (*Reporter) SendMail

func (rp *Reporter) SendMail(d *dag.DAG, status *model.Status, err error) error

SendMail is a function that sends a report mail.

Jump to

Keyboard shortcuts

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