Documentation ¶
Index ¶
- Constants
- func CreateMessage(channelID string, blocks []slack.Block, attachment slack.Attachment) string
- func CreateOrUpdateMessage(channelID string, buildID string, blocks []slack.Block, ...)
- func HandleSlackErrors(err error, blocks []slack.Block)
- func HandleTSErrors(err error, buildID string)
- func SaveNewMessageTS(buildID string, slackTS string)
- func SlackTSLookup(buildID string) string
- type BuildPhasesIcon
- type SlackMessageIdentifier
Constants ¶
View Source
const ( BuildPhasesUnknown = ":grey_question:" BuildPhasesFailed = ":x:" BuildPhasesFault = ":exclamation:" BuildPhasesInProgress = ":building_construction:" BuildPhasesQueued = ":building_construction:" BuildPhasesStopped = ":octagonal_sign:" BuildPhasesSucceeded = ":white_check_mark:" BuildPhasesTimedOut = ":stop_watch:" )
Variables ¶
This section is empty.
Functions ¶
func CreateMessage ¶
func CreateOrUpdateMessage ¶
func HandleSlackErrors ¶
Generic Error printer if exists - not much else we can do with them.
func HandleTSErrors ¶
Lookup Error printer if exists - not much else we can do with them.
func SaveNewMessageTS ¶
func SlackTSLookup ¶
Types ¶
type BuildPhasesIcon ¶
type BuildPhasesIcon string
https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildPhase.html ¶
type SlackMessageIdentifier ¶
Click to show internal directories.
Click to hide internal directories.