Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChatMsg ¶
GetChatMsg returns a struct representing a Message formatted with Google Chat "Cards" with information about a Release or Rollout depending on the ResourceType key in atts.
Types ¶
type Block ¶
type Block struct { TypeSectionBlock string `json:"type,omitempty"` Text *TextBlock `json:"text,omitempty"` Fields []TextBlock `json:"fields,omitempty"` Elements []ButtonBlock `json:"elements,omitempty"` }
func GetSlackMsg ¶
func GetSlackMsgRelease ¶
GetSlackMsgRelease returns a struct representing a "Block Kit" formatted Slack message with information about a Release
func GetSlackMsgRollout ¶
GetSlackMsgRelease returns a struct representing a "Block Kit" formatted Slack message with information about a Rollout
type Bot ¶
Bot should format the message the way it sees fit using the message map to identify the type of message and to organise key info into the best layout for the different chat systems.
type ButtonBlock ¶
type ButtonBlock struct { TypeButtonBlock string `json:"type,omitempty"` Text ButtonText `json:"text,omitempty"` Style string `json:"style,omitempty"` Value string `json:"value,omitempty"` }
type ButtonText ¶
type GChatAdapter ¶
func (*GChatAdapter) SendMessage ¶
type SlackAdapter ¶
func (*SlackAdapter) SendMessage ¶
type SlackMessageWrapper ¶
Click to show internal directories.
Click to hide internal directories.