Documentation
¶
Index ¶
- type Attachment
- type Block
- type Body
- type Field
- type Slack
- func (s Slack) CreateDividerSection() *slack.DividerBlock
- func (s Slack) CreateSimpleSection(text string) *slack.SectionBlock
- func (s Slack) CreateTitleSection(text string) *slack.SectionBlock
- func (s Slack) SendAPITestResultMessage(metrics []schemas.MetricResult) error
- func (s Slack) SendAPITestResultMessageWithWebHook(metrics []schemas.MetricResult) error
- func (s Slack) SendMessage(msgOpt ...slack.MsgOption) error
- func (s Slack) SendMessageWithWebHook(msg string) error
- func (s Slack) SendSimpleMessage(message string) error
- func (s Slack) SendSummaryMessage(config schemas.Config, stacks []schemas.Stack, app string) error
- func (s Slack) SendSummaryMessageWithWebHook(config schemas.Config, stacks []schemas.Stack, app string) error
- func (s Slack) ValidClient() bool
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Body ¶
type Body struct { Blocks []Block `json:"blocks,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` }
type Slack ¶
type Slack struct { Client *slack.Client Token string ChannelID string WebhookURL string SlackOff bool Color string }
func NewSlackClient ¶
NewSlackClient creates new slack client
func (Slack) CreateDividerSection ¶
func (s Slack) CreateDividerSection() *slack.DividerBlock
CreateDividerSection creates a new division block
func (Slack) CreateSimpleSection ¶
func (s Slack) CreateSimpleSection(text string) *slack.SectionBlock
CreateSimpleSection creates simple section with text
func (Slack) CreateTitleSection ¶
func (s Slack) CreateTitleSection(text string) *slack.SectionBlock
CreateTitleSection creates title section
func (Slack) SendAPITestResultMessage ¶
func (s Slack) SendAPITestResultMessage(metrics []schemas.MetricResult) error
SendAPITestResultMessage sends API test message
func (Slack) SendAPITestResultMessageWithWebHook ¶
func (s Slack) SendAPITestResultMessageWithWebHook(metrics []schemas.MetricResult) error
SendAPITestResultMessageWithWebHook sends API test result with slack webhook
func (Slack) SendMessage ¶
SendMessage really sends message with token
func (Slack) SendMessageWithWebHook ¶
SendMessageWithWebhook is for WebhookURL
func (Slack) SendSimpleMessage ¶
SendSimpleMessage creates and sends simple message
func (Slack) SendSummaryMessage ¶
SendSummaryMessage sends summary of deployment
Click to show internal directories.
Click to hide internal directories.