Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mattermost ¶
Mattermost handler implements handler.Handler interface, Notify event to Mattermost channel
func (*Mattermost) Init ¶
func (m *Mattermost) Init(c *config.Config) error
Init prepares Mattermost configuration
func (*Mattermost) ObjectCreated ¶
func (m *Mattermost) ObjectCreated(obj interface{})
ObjectCreated calls notifyMattermost on event creation
func (*Mattermost) ObjectDeleted ¶
func (m *Mattermost) ObjectDeleted(obj interface{})
ObjectDeleted calls notifyMattermost on event creation
func (*Mattermost) ObjectUpdated ¶
func (m *Mattermost) ObjectUpdated(oldObj, newObj interface{})
ObjectUpdated calls notifyMattermost on event creation
func (*Mattermost) TestHandler ¶
func (m *Mattermost) TestHandler()
TestHandler tests the handler configurarion by sending test messages.
type MattermostMessage ¶
type MattermostMessage struct { Channel string `json:"channel"` Username string `json:"username"` IconUrl string `json:"icon_url"` Text string `json:"text"` Attachements []MattermostMessageAttachement `json:"attachments"` }
MattermostMessage struct for messages
type MattermostMessageAttachement ¶
type MattermostMessageAttachement struct { Title string `json:"title"` Color string `json:"color"` }
MattermostMessageAttachement for message attachments
Click to show internal directories.
Click to hide internal directories.