slack

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BugzillaToSlackEmail

func BugzillaToSlackEmail(originalEmail string) string

func NewRecorder

func NewRecorder(client ChannelClient, component string) events.Recorder

Types

type ChannelClient

type ChannelClient interface {
	MessageChannel(message string) error
	MessageEmail(email, message string) error
}

func NewChannelClient

func NewChannelClient(client *slack.Client, channel string, debug bool) ChannelClient

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func (*Recorder) ComponentName

func (r *Recorder) ComponentName() string

func (*Recorder) Event

func (r *Recorder) Event(reason, message string)

func (*Recorder) Eventf

func (r *Recorder) Eventf(reason, messageFmt string, args ...interface{})

func (*Recorder) ForComponent

func (r *Recorder) ForComponent(componentName string) events.Recorder

func (*Recorder) Shutdown

func (r *Recorder) Shutdown()

func (*Recorder) Warning

func (r *Recorder) Warning(reason, message string)

func (*Recorder) Warningf

func (r *Recorder) Warningf(reason, messageFmt string, args ...interface{})

func (*Recorder) WithComponentSuffix

func (r *Recorder) WithComponentSuffix(componentNameSuffix string) events.Recorder

Jump to

Keyboard shortcuts

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