notif

package
v0.0.0-...-0b82c43 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppNotifier

type AppNotifier interface {
	PostMessage(pipelineName string, buildNumber int, buildStatus string, statuses []StageStatus, metadata map[string]interface{}) bool
}

type Attachment

type Attachment struct {
	Color   string `json:"color"`
	Pretext string `json:"pretext,omitempty"`
	Title   string `json:"title"`
	Text    string `json:"text"`
}

type Slack

type Slack struct {
	Channel     string       `json:"channel"`
	Username    string       `json:"username"`
	Text        string       `json:"text,omitempty"`
	Emoji       string       `json:"icon_emoji"`
	MarkDown    bool         `json:"mrkdwn"`
	Icon        string       `json:"icon_url"`
	Attachments []Attachment `json:"attachments,omitempty"`
	Url         string       `json:"-"`
}

func (*Slack) PostMessage

func (slack *Slack) PostMessage(pipelineName string, buildNumber int, buildStatus string, statuses []StageStatus, metadata map[string]interface{}) bool

type SlackDetails

type SlackDetails struct {
	Username string `json:"username"`
	Url      string `json:"url"`
	Channel  string `json:"channel"`
}

type StageStatus

type StageStatus struct {
	Name   string
	Status string
}

Jump to

Keyboard shortcuts

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