Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LvmVolumeType lvm volume type LvmVolumeType = "LVM" // PmemVolumeType lvm volume type PmemVolumeType = "PMEM" // QuotaPathVolumeType ... QuotaPathVolumeType = "QuotaPath" // MountPointType type MountPointType = "MountPoint" // DeviceVolumeType type DeviceVolumeType = "Device" // VolumeTypeKey volume type key words VolumeTypeKey = "volumeType" // TopologyNodeKey define host name of node TopologyNodeKey = "kubernetes.io/hostname" // TopologyYodaNodeKey define host name of node TopologyYodaNodeKey = "topology.yodaplugin.csi.alibabacloud.com/hostname" // PvcNameTag in annotations PvcNameTag = "csi.storage.k8s.io/pvc/name" // PvcNsTag in annotations PvcNsTag = "csi.storage.k8s.io/pvc/namespace" // NodeSchedueTag in annotations NodeSchedueTag = "volume.kubernetes.io/selected-node" // StorageSchedueTag in annotations StorageSchedueTag = "volume.kubernetes.io/selected-storage" // LastAppliyAnnotationTag tag LastAppliyAnnotationTag = "kubectl.kubernetes.io/last-applied-configuration" // CsiProvisionerIdentity tag CsiProvisionerIdentity = "storage.kubernetes.io/csiProvisionerIdentity" // CsiProvisionerTag tag CsiProvisionerTag = "volume.beta.kubernetes.io/storage-provisioner" )
View Source
const ( // NsenterCmd is the nsenter command NsenterCmd = "/nsenter --mount=/proc/1/ns/mnt --ipc=/proc/1/ns/ipc --net=/proc/1/ns/net --uts=/proc/1/ns/uts " // VgNameTag is the vg name tag VgNameTag = "vgName" // PmemType tag PmemType = "pmemType" // VolumeTypeTag is the pv type tag VolumeTypeTag = "volumeType" // PvTypeTag is the pv type tag PvTypeTag = "pvType" // FsTypeTag is the fs type tag FsTypeTag = "fsType" // LvmTypeTag is the lvm type tag LvmTypeTag = "lvmType" // PmemBlockDev is the pmem type tag PmemBlockDev = "pmemBlockDev" // NodeAffinity is the pv node schedule tag NodeAffinity = "nodeAffinity" // ProjQuotaFullPath is the path of project quota ProjQuotaFullPath = "projQuotaFullPath" // ProjQuotaProjectID is the project id of project quota ProjQuotaProjectID = "projectID" // LocalDisk local disk LocalDisk = "localdisk" // CloudDisk cloud disk CloudDisk = "clouddisk" // LinearType linear type LinearType = "linear" // StripingType striping type StripingType = "striping" // DefaultFs default fs DefaultFs = "ext4" // DefaultPmemType default lvm DefaultPmemType = "lvm" // DefaultNodeAffinity default NodeAffinity DefaultNodeAffinity = "true" )
View Source
const ( // MetadataURL is metadata server url MetadataURL = "http://100.100.100.200/latest/meta-data/" // InstanceID is the instance id tag InstanceID = "instance-id" // RegionIDTag is the region id tag RegionIDTag = "region-id" )
Variables ¶
View Source
var ( // DeviceChars is chars of a device DeviceChars = []string{"b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"} )
View Source
var ErrParse = errors.New("Cannot parse output of blkid")
ErrParse is an error that is returned when parse operation fails
View Source
var PmemSupportType = []string{types.PmemLVMType, types.PmemDirectType, types.PmemKmemType, types.PmemQuotaPathType}
PmemSupportType ...
Functions ¶
func GlobalConfigSet ¶ added in v1.0.6
func GlobalConfigSet(region, nodeID, driverName string)
GlobalConfigSet set Global Config
func NewNodeServer ¶
func NewNodeServer(d *csicommon.CSIDriver, dName, nodeID string) csi.NodeServer
NewNodeServer create a NodeServer object
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.