notifier

package
v0.0.0-...-6f2359a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

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

Mail is a notifier sending mails

func NewMail

func NewMail(sender string, client MailClient) *Mail

NewMail returns a new Mail instance

func (*Mail) Key

func (m *Mail) Key() string

Key returns the identifier of the notifier

func (*Mail) Notify

func (m *Mail) Notify(jobName, target string, diff []api.Diff, newValues map[string]string) error

Notify sends an email to given target

type MailClient

type MailClient interface {
	Send(msg *gomail.Message) error
}

MailClient is an SMTP client for sending mails

Jump to

Keyboard shortcuts

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