slack

package
v0.0.0-...-0870bb4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ChannelAnnotation is annotation key of slack message destination channel
	//
	// const: 'notify.sho2010.dev/channel'
	ChannelAnnotation = annotationPrefix + "channel"

	// NotifyConditionAnnotation is
	//
	// value example: "Complete,Failed"
	NotifyConditionAnnotation = annotationPrefix + "conditions"

	// EnabledAnnotation is annotation key of enabled slack notification
	//
	// value: true/false
	EnabledAnnotation = annotationPrefix + "enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	Token            string
	DefaultChannel   string
	Title            string
	NotifyCondisions []string
	DefaultEnabled   bool
}

Slack handler implements handler.Handler interface, Notify event to slack channel

func (*Slack) Handle

func (s *Slack) Handle(e event.Event)

Handle handles the notification.

Jump to

Keyboard shortcuts

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