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 IsHostMounted ¶
IsHostMounted check directory mounted
func ReadFileLines ¶
ReadFileLines read last 2k Bytes and return lines
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.