notify

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	SendEvent(events.Event) error
	SendMessage(string) error
}

Notifier to send event notification on the communication channels

func NewSlack

func NewSlack() Notifier

NewSlack returns new Slack object

type Slack

type Slack struct {
	Token       string
	Channel     string
	ClusterName string
}

Slack contains Token for authentication with slack and Channel name to send notification to

func (*Slack) SendEvent

func (s *Slack) SendEvent(event events.Event) error

SendEvent sends event notification to slack

func (*Slack) SendMessage

func (s *Slack) SendMessage(msg string) error

SendMessage sends message to slack channel

Jump to

Keyboard shortcuts

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