notifier

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyConfiguration

type NotifyConfiguration []NotifyEntry

NotifyConfiguration represents a list of notification methods

func (*NotifyConfiguration) Execute

func (n *NotifyConfiguration) Execute(metadata NotifyMetaData, cfg *config.Config, encryptionKey string) error

Execute iterates over all configured notification methods and calls the respective methods

type NotifyEntry

type NotifyEntry struct {
	// Type can be one of these: "dockerhub"
	Type string `yaml:"type"`
	// Target represents a target expected by the notification Type
	Target string `yaml:"target"`
	// Filter determines whether to send a notification. Expected is a comma seperated list of EventTypes (e.g. "success,error")
	Filter string `yaml:"filter,omitempty"`
}

NotifyEntry represents a configuration for a single notification method

func (*NotifyEntry) NotifyDockerHub

func (n *NotifyEntry) NotifyDockerHub(metadata NotifyMetaData) error

NotifyDockerHub calls a DockerHub webhook to build a container after building the artifacts

func (*NotifyEntry) NotifyEMail added in v1.23.0

func (n *NotifyEntry) NotifyEMail(metadata NotifyMetaData, cfg *config.Config) error

NotifyEMail utilizes the Mandrill API to send a predefined template for the current build

func (*NotifyEntry) NotifyPushover

func (n *NotifyEntry) NotifyPushover(metadata NotifyMetaData, cfg *config.Config) error

NotifyPushover uses the Pushover API to send notifications about the current build

type NotifyMetaData

type NotifyMetaData struct {
	EventType  string
	Repository string
}

NotifyMetaData contains information from the build process about the build for the notification process

Jump to

Keyboard shortcuts

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