Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusPending = ":raised_hand:" StatusSuccess = ":thumbsup:" StatusFailure = ":thumbsdown:" StatusError = ":exclamation:" )
View Source
const ( DescPending = "this build is pending" DescSuccess = "the build was successful" DescFailure = "the build failed" DescError = "oops, something went wrong" )
View Source
const ( PRMasterBranch = "master" PRBadToMerge = " -> bad to merge" PRGoodToMerge = " -> good to merge" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitlab ¶
type GitlabClient ¶
type Gitter ¶
type Hipchat ¶
type Hipchat struct { Server string `yaml:"server,omitempty"` Room string `yaml:"room,omitempty"` Token string `yaml:"token,omitempty"` Started bool `yaml:"on_started,omitempty"` Success bool `yaml:"on_success,omitempty"` Failure bool `yaml:"on_failure,omitempty"` }
func (*Hipchat) SendWithClient ¶
func (h *Hipchat) SendWithClient(client HipchatClient, context *model.Request) error
type HipchatClient ¶
type HipchatClient interface {
PostMessage(req HipchatMessageRequest) error
}
type HipchatMessageRequest ¶
type HipchatSimpleHTTPClient ¶
type HipchatSimpleHTTPClient struct{}
func (*HipchatSimpleHTTPClient) PostMessage ¶
func (*HipchatSimpleHTTPClient) PostMessage(req HipchatMessageRequest) error
type Notification ¶
type Notification struct { Email *email.Email `yaml:"email,omitempty"` Webhook *webhook.Webhook `yaml:"webhook,omitempty"` Hipchat *Hipchat `yaml:"hipchat,omitempty"` Irc *irc.IRC `yaml:"irc,omitempty"` Slack *Slack `yaml:"slack,omitempty"` Gitter *Gitter `yaml:"gitter,omitempty"` Flowdock *flowdock.Flowdock `yaml:"flowdock,omitempty"` KatoIM *katoim.KatoIM `yaml:"katoim,omitempty"` Gitlab *Gitlab `yaml:"gitlab,omitempty"` GitHub github.GitHub `yaml:"--"` }
Notification stores the configuration details for notifying a user, or group of users, when their Build has completed.
type Slack ¶
type Slack struct { WebhookUrl string `yaml:"webhook_url,omitempty"` Channel string `yaml:"channel,omitempty"` Username string `yaml:"username,omitempty"` Started bool `yaml:"on_started,omitempty"` Success bool `yaml:"on_success,omitempty"` Failure bool `yaml:"on_failure,omitempty"` Change bool `yaml:"on_change,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.