Documentation
¶
Overview ¶
Package smtp implements an email notification handler for kubewatch.
See example configuration in the ConfigExample constant.
Index ¶
Constants ¶
View Source
const ( // ConfigExample is an example configuration. ConfigExample = `` /* 239-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
SMTP handler implements handler.Handler interface, Notify event via email.
func (*SMTP) ObjectCreated ¶
func (s *SMTP) ObjectCreated(obj interface{})
ObjectCreated calls notifyWebhook on event creation
func (*SMTP) ObjectDeleted ¶
func (s *SMTP) ObjectDeleted(obj interface{})
ObjectDeleted calls notifyWebhook on event creation
func (*SMTP) ObjectUpdated ¶
func (s *SMTP) ObjectUpdated(oldObj, newObj interface{})
ObjectUpdated calls notifyWebhook on event creation
func (*SMTP) TestHandler ¶
func (s *SMTP) TestHandler()
TestHandler tests the handler configurarion by sending test messages.
Click to show internal directories.
Click to hide internal directories.