Documentation ¶
Index ¶
- Constants
- type Config
- type Payload
- type Slack
- func (s Slack) FormatMessage(message []map[string]interface{}, index int) []map[string]interface{}
- func (s Slack) FormatSummaryMessage(message []map[string]interface{}) []map[string]interface{}
- func (s Slack) IsValidCredential(ctx context.Context) (bool, error)
- func (s Slack) SendNotification(ctx context.Context, message []map[string]interface{}, ...) error
- func (s Slack) SendSummaryLink() bool
- func (s Slack) ValidateConfig(validate *validator.Validate) error
Constants ¶
View Source
const BatchSize = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Parse string `json:"parse,omitempty"` Username string `json:"username,omitempty"` IconURL string `json:"icon_url,omitempty"` IconEmoji string `json:"icon_emoji,omitempty"` Channel string `json:"channel,omitempty"` Text string `json:"text,omitempty"` LinkNames string `json:"link_names,omitempty"` UnfurlLinks bool `json:"unfurl_links,omitempty"` UnfurlMedia bool `json:"unfurl_media,omitempty"` Markdown bool `json:"mrkdwn,omitempty"` }
type Slack ¶
type Slack struct { Config Config `json:"config"` IntegrationType string `json:"integration_type"` NotificationType string `json:"notification_type"` Filters reporters.FieldsFilters `json:"filters"` Message string `json:"message"` Resource string `json:"resource"` }
func (Slack) FormatMessage ¶
func (Slack) FormatSummaryMessage ¶
func (Slack) IsValidCredential ¶
func (Slack) SendNotification ¶
func (Slack) SendSummaryLink ¶
func (Slack) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.