notifier

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contacts

type Contacts struct {
	Name    string
	Address string
}

type IOWriter

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

func (*IOWriter) Send

func (n *IOWriter) Send(newDependencies []dependency.Spec, updatedDependencies []dependency.Spec) error

type Notifier

type Notifier interface {
	Send(newDependencies []dependency.Spec, updatedDependencies []dependency.Spec) error
}

func NewEmailNotifier

func NewEmailNotifier(apiKey, senderName, senderEmail, subject string, contacts []Contacts) Notifier

func NewIOWriter

func NewIOWriter(writer io.Writer) Notifier

Jump to

Keyboard shortcuts

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