Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { // Global settings Host string // User that owns the repository User *model.User // Repository being built. Repo *model.Repo // Commit being built Commit *model.Commit }
Context represents the context of an in-progress build request.
type Email ¶
type Flowdock ¶ added in v0.2.1
type Hipchat ¶
type IRC ¶
type IRC struct { Channel string `yaml:"channel,omitempty"` Nick string `yaml:"nick,omitempty"` Server string `yaml:"server,omitempty"` Started bool `yaml:"on_started,omitempty"` Success bool `yaml:"on_success,omitempty"` Failure bool `yaml:"on_failure,omitempty"` SSL bool `yaml:"ssl,omitempty"` ClientStarted bool Client *irc.Conn }
type Notification ¶
type Notification struct { Email *Email `yaml:"email,omitempty"` Webhook *Webhook `yaml:"webhook,omitempty"` Hipchat *Hipchat `yaml:"hipchat,omitempty"` Irc *IRC `yaml:"irc,omitempty"` Slack *Slack `yaml:"slack,omitempty"` Flowdock *Flowdock `yaml:"flowdock,omitempty"` }
Notification stores the configuration details for notifying a user, or group of users, when their Build has completed.
func (*Notification) Send ¶
func (n *Notification) Send(context *Context) error
type Slack ¶ added in v0.2.1
type Slack struct { Team string `yaml:"team,omitempty"` Channel string `yaml:"channel,omitempty"` Username string `yaml:"username,omitempty"` Token string `yaml:"token,omitempty"` Started bool `yaml:"on_started,omitempty"` Success bool `yaml:"on_success,omitempty"` Failure bool `yaml:"on_failure,omitempty"` }
Click to show internal directories.
Click to hide internal directories.