# Functions
AppendJSONData append map data to json file.
CheckParameterValidate is check parameter validating in csi-plugin.
CheckQuotaPathValidate is check quota path validating in csi-plugin.
ConnectorRun Run shell command with host connector host connector is daemon running in host.
CreateDest create de destination dir.
CreateDestInHost create host dest directory.
CreateEvent is create events.
No description provided by the author
Fail return a Fail Result.
Fsync is a wrapper around file.Sync().
GetFileContent get file content.
GetMetaData get metadata from ecs meta-server.
GetMetrics get path metric.
GetNodeAddr get node address.
GetNodeIP get node address.
GetPodRunTime Get Pod runtimeclass config Default as runc.
GetPodUIDFromTargetPath returns podUID from targetPath.
GetPvNameFormPodMnt get pv name.
GetRegionAndInstanceID get region and instanceID object.
GetRegionIDAndInstanceID get regionID and instanceID object.
IsDir check file is directory.
IsDirEmpty return status of dir empty or not.
IsDirTmpfs check path is tmpfs mounted or not.
IsFileExisting check file exist in volume driver or not.
IsHostFileExist is check host file is existing in lvm.
IsKataInstall check kata daemon installed.
IsLikelyNotMountPoint return status of mount point,this function fix IsMounted return 0 bug IsLikelyNotMountPoint determines if a directory is not a mountpoint.
IsMounted return status of mount operation.
IsMountedInHost return status of host mounted or not.
IsMountPointRunv check the mountpoint is runv style.
IsPathAvailiable.
ListProcMounts is shared with NsEnterMounter.
LoadJSONData loads json info from specified json file.
No description provided by the author
NewEventRecorder is create snapshots event recorder.
NewMounter returns a new mounter instance.
NotSupport return a NotSupport Result.
Ping check network like shell ping command.
ReadJSONFile return a json object.
No description provided by the author
RetryGetMetaData ...
Run run shell command.
RunTimeout tag.
SetNodeAddrMap set map with mutex.
SetVolumeIOLimit config io limit for device.
Succeed return a Succeed Result.
Umount do an unmount operation.
UmountInHost do an unmount operation.
WriteAndSyncFile behaves just like os.WriteFile in the standard library, but calls Sync before closing the file.
WriteJSONFile save json data to file.
No description provided by the author
# Constants
CsiPluginRunTimeFlagFile tag.
DefaultRegion is default region.
InstallSnapshotCRD tag.
InstanceIDTag is instance id.
MetadataMaxRetrycount ...
MetadataURL is metadata url.
NsenterCmd is the nsenter command.
PluginService represents the csi-plugin type.
ProvisionerService represents the csi-provisioner type.
RegionIDTag is region id.
RuncRunTimeTag tag.
RunvRunTimeTag tag.
ServiceType tag.
UserAKID is user AK ID.
UserAKSecret is user AK Secret.
VolDataFileName file.
# Variables
KubeletRootDir kubelet root dir;.
No description provided by the author
MountPathWithTLS tls mount path;.
NodeAddrMap map for NodeID and its Address.
NodeAddrMutex Mutex for NodeAddr map.
# Structs
DefaultOptions used for global ak.
MountPoint represents a single line in /proc/mounts or /etc/fstab.
Result struct definition.
RoleAuth define STS Token Response.
# Interfaces
Mounter is responsible for formatting and mounting volumes.
# Type aliases
CommandRunFunc define the run function in utils for ut.