Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NsenterCmd is the nsenter command NsenterCmd = "/nsenter --mount=/proc/1/ns/mnt" // VgNameTag is the vg name tag VgNameTag = "vgName" // PvTypeTag is the pv type tag PvTypeTag = "pvType" // FsTypeTag is the fs type tag FsTypeTag = "fsType" // LvmTypeTag is the lvm type tag LvmTypeTag = "lvmType" // NodeAffinity is the pv node schedule tag NodeAffinity = "nodeAffinity" // 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" // DefaultNA default NodeAffinity DefaultNA = "true" // TopologyNodeKey tag TopologyNodeKey = "topology.lvmplugin.csi.alibabacloud.com/hostname" )
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
Functions ¶
func NewNodeServer ¶
func NewNodeServer(d *csicommon.CSIDriver, nodeID string) csi.NodeServer
NewNodeServer create a NodeServer object
Types ¶
Click to show internal directories.
Click to hide internal directories.