watchers

package
v0.0.0-...-91d8391 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = os.Getenv("WHATSAPP_ACCOUNT")

Functions

func CheckError

func CheckError(err interface{}, msg string)

func CreateClient

func CreateClient() *kubernetes.Clientset

func Greet

func Greet()

func IncreaseWhatsappDiskSize

func IncreaseWhatsappDiskSize() int64

func Send

func Send(sendTo string, mailTemplate MailTemplate)

func SendMail

func SendMail(template string, body string, sendTo []string)

func WatchDirectoryUsage

func WatchDirectoryUsage()

Types

type DfCMD

type DfCMD struct {
	Filesystem string
	Size       string
	Used       string
	Available  string
	UsePer     int
	MountedOn  string
}

func ExecuteDFCommand

func ExecuteDFCommand() *DfCMD

type Logger

type Logger struct {
	*logrus.Logger
}

func NewLogger

func NewLogger() *Logger

type MailTemplate

type MailTemplate struct {
	Subject  string
	HtmlBody string
	TextBody string
}

Jump to

Keyboard shortcuts

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