Documentation ¶
Index ¶
- func CheckDiskStorage(dirToMonitor *string)
- func CheckError(err interface{}, msg string)
- func CreateClient() (*kubernetes.Clientset, *rest.Config)
- func ExecPod(namespace string) string
- func GetPvcObject(namespace *string) v1.PersistentVolumeClaimInterface
- func Greet()
- func IncreaseStorageSpace(namespace string) string
- func IncreaseWhatsappDiskSize(namespace string) int64
- func NamespaceList() (*v12.NamespaceList, error)
- func ProcessDiskUsageOutput(dirUsage *DfCMD, accountName string)
- func Send(sendTo string, mailTemplate MailTemplate)
- func SendMail(template string, body string, sendTo []string)
- type DfCMD
- type Logger
- type MailTemplate
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 GetPvcObject ¶
func GetPvcObject(namespace *string) v1.PersistentVolumeClaimInterface
func IncreaseStorageSpace ¶
func NamespaceList ¶
func NamespaceList() (*v12.NamespaceList, error)
func ProcessDiskUsageOutput ¶
func Send ¶
func Send(sendTo string, mailTemplate MailTemplate)
Types ¶
type DfCMD ¶
type DfCMD struct { Filesystem string Size string Used string Available string UsePer int MountedOn string }
func GetDirectoryUsage ¶
type MailTemplate ¶
Click to show internal directories.
Click to hide internal directories.