notify

package
v0.0.0-...-a7087c3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flowdock

type Flowdock struct {
	Token   string `yaml:"token,omitempty"`
	Source  string `yaml:"source,omitempty"`
	Tags    string `yaml:"tags,omitempty"`
	Started bool   `yaml:"on_started,omitempty"`
	Success bool   `yaml:"on_success,omitempty"`
	Failure bool   `yaml:"on_failure,omitempty"`
}

func (*Flowdock) Send

func (f *Flowdock) Send(context *model.Request) error

type Gitter

type Gitter struct {
	RoomID  string `yaml:"room_id,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 (*Gitter) Send

func (g *Gitter) Send(context *model.Request) error

type Hipchat

type Hipchat struct {
	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) Send

func (h *Hipchat) Send(context *model.Request) error

func (*Hipchat) SendWithClient

func (h *Hipchat) SendWithClient(client HipchatClient, context *model.Request) error

type HipchatClient

type HipchatClient interface {
	PostMessage(req hipchat.MessageRequest) 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        `yaml:"flowdock,omitempty"`
	KatoIM   *katoim.KatoIM   `yaml:"katoim,omitempty"`

	GitHub github.GitHub `yaml:"--"`
}

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 *model.Request) error

type Sender

type Sender interface {
	Send(context *model.Request) error
}

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"`
}

func (*Slack) Send

func (s *Slack) Send(context *model.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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