Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
type Slack interface { // SendDevopsAlert posts a message to the configured DevOps alert channel SendDevopsAlert(title string, text string, ok bool) error // SendDirectMessage send a direct message to a user, by email SendDirectMessage(email string, markdown string) error }
func New ¶
func New(thelmaConfig config.Config, vaultClientFactory func() (*vaultapi.Client, error)) (Slack, error)
New is lazy, meaning that it does not try to set up its Vault client immediately. This makes it much less likely to error, so that a Slack client can be safely passed around Thelma and only try-caught at the actual call-site of attempting to send a message
Click to show internal directories.
Click to hide internal directories.