Documentation
¶
Index ¶
- type Config
- type Provider
- func (sp Provider) DeploymentNotificationThread(ctx context.Context, msg, user, channel, ts string)
- func (sp Provider) ErrorNotification(ctx context.Context, user, channel string, err error)
- func (sp Provider) ErrorNotificationThread(ctx context.Context, user, channel, ts string, err error)
- func (sp Provider) GetChannelInfo(ctx context.Context, channelID string) (chatmodels.Channel, error)
- func (sp Provider) GetUser(ctx context.Context, user string) (*chatmodels.ChatUser, error)
- func (sp Provider) PostLinkMessageThread(ctx context.Context, url string, user string, channel string, ts string)
- func (sp Provider) PostMessage(ctx context.Context, msg, channel string) (timestamp string)
- func (sp Provider) PostMessageThread(ctx context.Context, msg, channel, ts string) (timestamp string)
- func (sp Provider) PostPrivateMessage(ctx context.Context, msg string, user string)
- func (sp Provider) ReleaseResultsMessageThread(ctx context.Context, msg, user, channel, ts string)
- func (sp Provider) ShowResultsMessageThread(ctx context.Context, msg, user, channel, ts string)
- func (sp Provider) UserNotificationThread(ctx context.Context, msg, user, channel, ts string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SlackSigningSecret string `split_words:"true" required:"true"` SlackVerificationToken string `split_words:"true" required:"true"` SlackOauthAccessToken string `split_words:"true" required:"true"` SlackMaintenanceEnabled bool `split_words:"true" default:"false"` }
Config needed for slack
EVEBOT_SLACK_SIGNING_SECRET EVEBOT_SLACK_VERIFICATION_TOKEN EVEBOT_SLACK_OAUTH_ACCESS_TOKEN EVEBOT_SLACK_CHANNELS_MAINTENANCE EVEBOT_SLACK_MAINTENANCE_ENABLED
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is the Slack provider which wraps the slack the client
func (Provider) DeploymentNotificationThread ¶
DeploymentNotificationThread notifies the thread of the deployment results
func (Provider) ErrorNotification ¶
ErrorNotification is a general error notification
func (Provider) ErrorNotificationThread ¶
func (sp Provider) ErrorNotificationThread(ctx context.Context, user, channel, ts string, err error)
ErrorNotificationThread is a threaded error notification
func (Provider) GetChannelInfo ¶
func (sp Provider) GetChannelInfo(ctx context.Context, channelID string) (chatmodels.Channel, error)
GetChannelInfo returns the slack channel info
func (Provider) PostLinkMessageThread ¶
func (sp Provider) PostLinkMessageThread(ctx context.Context, url string, user string, channel string, ts string)
PostLinkMessageThread sends a threaded message with links
func (Provider) PostMessage ¶
PostMessage sends a chat message
func (Provider) PostMessageThread ¶
func (sp Provider) PostMessageThread(ctx context.Context, msg, channel, ts string) (timestamp string)
PostMessageThread sends a threaded message
func (Provider) PostPrivateMessage ¶
func (Provider) ReleaseResultsMessageThread ¶
ReleaseResultsMessageThread sens the release results as a threaded message
func (Provider) ShowResultsMessageThread ¶
ShowResultsMessageThread sends a threaded results message
Click to show internal directories.
Click to hide internal directories.