smtp

package
v0.0.0-...-c6334f4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

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

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

Types

type SMTP

type SMTP struct {
	// contains filtered or unexported fields
}

SMTP handler implements handler.Handler interface, Notify event via email.

func (*SMTP) Handle

func (s *SMTP) Handle(e event.Event)

Handle handles the notification.

func (*SMTP) HandleUpdate

func (s *SMTP) HandleUpdate(old event.Event, new interface{})

func (*SMTP) Init

func (s *SMTP) Init(c *config.Config) error

Init prepares Webhook configuration

Jump to

Keyboard shortcuts

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