slack

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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