slack

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 struct {
	// contains filtered or unexported fields
}

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

func (*Slack) SendDevopsAlert added in v1.0.31

func (s *Slack) SendDevopsAlert(title string, text string, ok bool) error

SendDevopsAlert posts a message to the configured DevOps alert channel

func (*Slack) SendDirectMessage added in v1.0.31

func (s *Slack) SendDirectMessage(email string, markdown string) error

SendDirectMessage send a direct message to a user, by email

Jump to

Keyboard shortcuts

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