monitor

package
v0.0.0-...-4f17fb6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	NSENTER_CMD = "/acs/nsenter --mount=/proc/1/ns/mnt "
	DISK_BIN    = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/alicloud~disk/disk"
	OSS_BIN     = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/alicloud~oss/oss"
	NAS_BIN     = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/alicloud~nas/nas"

	FLEXVOLUME_CONFIG_FILE = "/host/etc/kubernetes/flexvolume.conf"
	HOST_SYS_LOG           = "/host/var/log/messages"
	DEFAULT_SLEEP_SECOND   = 60
)

const values for monitoring

Variables

This section is empty.

Functions

func HostUmount

func HostUmount(mountPath string) bool

HostUmount check directory in host mounted

func IsHostEmpty

func IsHostEmpty(mountPath string) bool

IsHostEmpty check host mounted

func IsHostMounted

func IsHostMounted(mountPath string) bool

IsHostMounted check directory mounted

func Monitoring

func Monitoring()

Monitoring running for plugin status check

func ReadFileLines

func ReadFileLines(fname string) []string

ReadFileLines read last 2k Bytes and return lines

func RemoveHostPath

func RemoveHostPath(mountPath string)

RemoveHostPath remove host path

Types

This section is empty.

Jump to

Keyboard shortcuts

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