Documentation
¶
Index ¶
Constants ¶
View Source
const ( RunnerName = "notify.legacy" // Thus on each run of the notifier, we check if the last notification time // (LNT) is within this window. If it is, then we use the retrieved LNT. // If not, we use the current time LNRWindow = 60 * time.Minute // MCI ops notification prefaces ProvisionFailurePreface = "[PROVISION-FAILURE]" ProvisionTimeoutPreface = "[PROVISION-TIMEOUT]" ProvisionLatePreface = "[PROVISION-LATE]" TeardownFailurePreface = "[TEARDOWN-FAILURE]" // repotracker notification prefaces RepotrackerFailurePreface = "[REPOTRACKER-FAILURE %v] on %v" // branch name to use if the project reference is not found UnknownProjectBranch = "" DefaultNotificationsConfig = "/etc/mci-notifications.yml" )
Variables ¶
This section is empty.
Functions ¶
func NotifyAdmins ¶
NotifyAdmins is a helper method to send a notification to the MCI admin team
func TrySendNotification ¶
Helper function to send notifications
Types ¶
type Mailer ¶
func ConstructMailer ¶
func ConstructMailer(notifyConfig evergreen.NotifyConfig) Mailer
Click to show internal directories.
Click to hide internal directories.