# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AppendJSONData append map data to json file.
BytesToGiB converts Bytes to GiB.
No description provided by the author
ConnectorRun Run shell command with host connector host connector is daemon running in host.
CreateDest create de destination dir.
CreateEvent is create events.
FindSuggestionByErrorMessage get new error message by error type & error message.
formatAndMount uses unix utils to format and mount the given disk.
No description provided by the author
Fsync is a wrapper around file.Sync().
GetAccessControl 1、Read default ak from local file.
GetAccessModes returns a slice containing all of the access modes defined in the passed in VolumeCapabilities.
No description provided by the author
GetDefaultRoleAK 返回角色扮演账号AK, SK, role arn.
GetDiskFStypePTtype uses 'blkid' to see if the given disk is unformatted.
GetEnvAK read ak from local ENV.
GetFileContent get file content.
GetMetaData get metadata from ecs meta-server.
GetMetrics get path metric.
Get NVME device name by diskID; /dev/nvme0n1 0: means device index, 1: means namespace for nvme device; udevadm info --query=all --name=/dev/nvme0n1 | grep ID_SERIAL_SHORT | awk -F= '{print $2}' bp1bcfmvsobfauvxb3ow.
No description provided by the author
GetPodRunTime Get Pod runtimeclass config Default as runc.
GetPvNameFormPodMnt get pv name.
GetRegionID Get RegionID from Environment Variables or Metadata.
No description provided by the author
No description provided by the author
No description provided by the author
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.
IsMountPointRunv check the mountpoint is runv style.
IsPathAvailiable.
No description provided by the author
LoadJSONData loads json info from specified json file.
NewEcsClient create a ecsClient object.
NewEventRecorder is create snapshots event recorder.
No description provided by the author
NewMounter returns a new mounter instance.
No description provided by the author
NewStsClient create a stsClient object TODO: The current region is set to the default value.
No description provided by the author
Ping check network like shell ping command.
ReadJSONFile return a json object.
RetryGetMetaData ...
RoundUpBytes rounds up the volume size in bytes upto multiplications of GiB in the unit of Bytes.
ValidatePath is check path string is valid.
No description provided by the author
WriteAndSyncFile behaves just like ioutil.WriteFile in the standard library, but calls Sync before closing the file.
WriteJSONFile save json data to file.
No description provided by the author
No description provided by the author

# Constants

AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
CGROUPFS_MOUNT_PATH is the path to the host cgroupfs mounted in the container.
ConfigPath the secret mount file.
No description provided by the author
AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
CsiPluginRunTimeFlagFile tag.
DefaultRegion is default region.
DiskAttachDetach ...
DiskDelete ...
DiskMount ...
DiskProvision ...
AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
GiB ...
InstanceIDTag is instance id.
AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
MetadataMaxRetryCount ...
MetadataURL is metadata url.
NasFilesystemCreate ...
NasFilesystemDelete ...
NasMountTargetCreate ...
NasMountTargetDelete ...
No description provided by the author
AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
PluginService represents the csi-plugin type.
No description provided by the author
No description provided by the author
ProvisionerService represents the csi-provisioner type.
RegionIDTag is region id.
AccessControlMode includes AccessKey, ManagedToken, EcsRamRole, Credential, RoleArnToken, five types of access control.
RuncRunTimeTag tag.
RunvRunTimeTag tag.
RunvRunTimeTag tag.
ServiceType tag.
VolDataFileName file.
ECS worker role resource url in metadata server.

# Variables

DiskAttachDetachErrors are errors throwed by disk attach.
DiskDeleteErrors are errors throwed by disk delete.
DiskMountErrors are errors throwed by disk mount.
DiskProvisionErrors are errors throwed by ecs create disk api.
KubeletRootDir kubelet root dir;.
MountPathWithTLS tls mount path;.
NasFilesystemCreateErrors are errors throwed by nas create.
NasFilesystemDeleteErrors are errors throwed by nas filesystem delete.
NasMountTargetCreateErrors are errors throwed by nas mount target create.
NasMountTargetDeleteErrors are errors throwed by nas mount target delete.
No description provided by the author

# Structs

AccessControl is access control option.
AKInfo access key info.
No description provided by the author
ManageTokens 定义资源账号 和 角色扮演账号.
MountPoint represents a single line in /proc/mounts or /etc/fstab.
No description provided by the author
RoleAuth define STS Token Response.
No description provided by the author

# Interfaces

Mounter is responsible for formatting and mounting volumes.

# Type aliases

AccessControlMode is int, represents different modes.
No description provided by the author