watchers

package
v0.0.0-...-85d57b6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDiskStorage

func CheckDiskStorage(dirToMonitor *string)

func CheckError

func CheckError(err interface{}, msg string)

func CreateClient

func CreateClient() (*kubernetes.Clientset, *rest.Config)

func ExecPod

func ExecPod(namespace string) string

func GetPvcObject

func GetPvcObject(namespace *string) v1.PersistentVolumeClaimInterface

func Greet

func Greet()

func IncreaseStorageSpace

func IncreaseStorageSpace(namespace string) string

func IncreaseWhatsappDiskSize

func IncreaseWhatsappDiskSize(namespace string) int64

func NamespaceList

func NamespaceList() (*v12.NamespaceList, error)

func ProcessDiskUsageOutput

func ProcessDiskUsageOutput(dirUsage *DfCMD, accountName string)

func Send

func Send(sendTo string, mailTemplate MailTemplate)

func SendMail

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

Types

type DfCMD

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

func GetDirectoryUsage

func GetDirectoryUsage(diskToMonitor string, namespace string) *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