message

package
v0.0.0-...-1b32fef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 CreateMessage(channelID string, blocks []slack.Block, attachment slack.Attachment) string

func CreateOrUpdateMessage

func CreateOrUpdateMessage(channelID string, buildID string, blocks []slack.Block, attachment slack.Attachment)

func HandleSlackErrors

func HandleSlackErrors(err error, blocks []slack.Block)

Generic Error printer if exists - not much else we can do with them.

func HandleTSErrors

func HandleTSErrors(err error, buildID string)

Lookup Error printer if exists - not much else we can do with them.

func SaveNewMessageTS

func SaveNewMessageTS(buildID string, slackTS string)

func SlackTSLookup

func SlackTSLookup(buildID string) string

Types

type BuildPhasesIcon

type BuildPhasesIcon string

https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildPhase.html

type SlackMessageIdentifier

type SlackMessageIdentifier struct {
	BuildID string `json:"buildID"`
	TS      string `json:"ts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL