Documentation ¶
Index ¶
- Constants
- func AddFlags(cmd *cobra.Command)
- func NewRecorder(client ChannelClient, component string) events.Recorder
- type ChannelClient
- 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
- type SlackCredentials
Constants ¶
View Source
const (
// NoneEmail can be put in the SetEmailMap() to not send someone a message
NoneEmail = "NONE"
)
Variables ¶
This section is empty.
Functions ¶
func NewRecorder ¶
func NewRecorder(client ChannelClient, component string) events.Recorder
Types ¶
type ChannelClient ¶
type ChannelClient interface { MessageChannel(channel, message string) error MessageDebug(message string) error MessageEmail(email, message string) error SetEmailMap(map[string]string) }
func NewChannelClient ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func (*Recorder) ComponentName ¶
func (*Recorder) ForComponent ¶
type SlackCredentials ¶
type SlackCredentials struct { SlackToken string `json:"slackToken"` SlackVerificationToken string `json:"slackVerificationToken"` }
func (SlackCredentials) DecodedSlackToken ¶
func (b SlackCredentials) DecodedSlackToken() string
func (SlackCredentials) DecodedSlackVerificationToken ¶
func (b SlackCredentials) DecodedSlackVerificationToken() string
Click to show internal directories.
Click to hide internal directories.