Documentation ¶
Index ¶
- func BugzillaToSlackEmail(config *config.OperatorConfig, bzEmail string) string
- func NewRecorder(client ChannelClient, component string) events.Recorder
- func SlackEmailToBugzilla(config *config.OperatorConfig, slackEmail string) string
- type ChannelClient
- type EventBus
- type Recorder
- func (r *Recorder) ComponentName() string
- func (r *Recorder) Event(reason, message string)
- func (r *Recorder) Eventf(reason, messageFmt string, args ...interface{})
- func (r *Recorder) ForComponent(componentName string) events.Recorder
- func (r *Recorder) Shutdown()
- func (r *Recorder) Warning(reason, message string)
- func (r *Recorder) Warningf(reason, messageFmt string, args ...interface{})
- func (r *Recorder) WithComponentSuffix(componentNameSuffix string) events.Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BugzillaToSlackEmail ¶
func BugzillaToSlackEmail(config *config.OperatorConfig, bzEmail string) string
func NewRecorder ¶
func NewRecorder(client ChannelClient, component string) events.Recorder
func SlackEmailToBugzilla ¶
func SlackEmailToBugzilla(config *config.OperatorConfig, slackEmail string) string
Types ¶
type ChannelClient ¶
type ChannelClient interface { MessageChannel(message string) error MessageAdminChannel(message string) error MessageEmail(email, message string) error PostMessageChannel(options ...slack.MsgOption) (channelID string, ts string, err error) PostMessageAdminChannel(options ...slack.MsgOption) error PostMessageEmail(email string, options ...slack.MsgOption) error }
func NewChannelClient ¶
func NewChannelClient(client *slack.Client, config *config.OperatorConfig, channel, adminChannel string, debug bool) ChannelClient
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func (*Recorder) ComponentName ¶
func (*Recorder) ForComponent ¶
Click to show internal directories.
Click to hide internal directories.