Documentation
¶
Index ¶
- Variables
- func CheckDeviceAvailable(devicePath string) error
- func CreateDest(dest string) error
- func FsInfo(path string) (int64, int64, int64, int64, int64, int64, error)
- func GetDeviceByVolumeID(volumeID string) (device string, err error)
- func GetMetrics(path string) (*csi.NodeGetVolumeStatsResponse, error)
- func HttpGet(url string) (result string, err error)
- func IsFileExisting(filename string) bool
- type Mounter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMounter = NewMounter()
Functions ¶
func CheckDeviceAvailable ¶
func FsInfo ¶
FsInfo linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) for the filesystem that path resides upon.
func GetDeviceByVolumeID ¶
GetDeviceByVolumeID First try to find the device by serial If cannot find the device using the serial number, get device by volumeID, link file should be like: /dev/disk/by-id/virtio-163696622650261511 -> ../../vdc
func GetMetrics ¶
func GetMetrics(path string) (*csi.NodeGetVolumeStatsResponse, error)
GetMetrics get path metric
func IsFileExisting ¶
IsFileExisting check file exist in volume driver or not
Types ¶
Click to show internal directories.
Click to hide internal directories.