Versions in this module Expand all Collapse all v1 v1.0.1 Jan 9, 2023 v1.0.0 Jan 6, 2023 Changes in this version + const CloudDisk + const DefaultFs + const DefaultNA + const DirectTag + const ErrInvalidLVName + const ErrInvalidVGName + const ErrLogicalVolumeNotFound + const ErrNoSpace + const ErrPhysicalVolumeNotFound + const ErrTagHasInvalidChars + const ErrTagInvalidLength + const ErrVolumeGroupNotFound + const FsTypeTag + const InstanceID + const LinearType + const LocalDisk + const LvmTypeTag + const MaxSize + const MetadataURL + const NsenterCmd + const PvTypeTag + const RegionIDTag + const StripingType + const TopologyNodeKey + const VgNameTag + const VolumeOperationAlreadyExistsErrorMsg + var DeviceChars = []string + var ErrParse = errors.New("Cannot parse output of blkid") + var Verbose bool + func GetMetaData(resource string) string + func IsLogicalVolumeNotFound(err error) bool + func IsPhysicalVolumeNotFound(err error) bool + func IsVolumeGroupNotFound(err error) bool + func ListVolumeGroupNames() ([]string, error) + func ListVolumeGroupUUIDs() ([]string, error) + func NewNodeServer(d *csicommon.CSIDriver, nodeID string) csi.NodeServer + func PVScan(dev string) error + func VGScan(name string) error + func ValidateLogicalVolumeName(name string) error + func ValidateTag(tag string) error + func ValidateVolumeGroupName(name string) error + type InFlight struct + func NewInFlight() *InFlight + func (db *InFlight) Delete(key string) + func (db *InFlight) Insert(key string) bool + type LVM struct + func NewDriver(nodeID, endpoint string) *LVM + func (lvm *LVM) Run() + type LogicalVolume struct + func (lv *LogicalVolume) Expand(size uint64) error + func (lv *LogicalVolume) IsSnapshot() bool + func (lv *LogicalVolume) Name() string + func (lv *LogicalVolume) OriginLVName() string + func (lv *LogicalVolume) Path() (string, error) + func (lv *LogicalVolume) Remove() error + func (lv *LogicalVolume) SizeInBytes() uint64 + func (lv *LogicalVolume) Usage() float64 + type PhysicalVolume struct + func CreatePhysicalVolume(dev string, force bool) (*PhysicalVolume, error) + func ListPhysicalVolumes() ([]*PhysicalVolume, error) + func LookupPhysicalVolume(name string) (*PhysicalVolume, error) + func (pv *PhysicalVolume) Check() error + func (pv *PhysicalVolume) Remove() error + type VolumeGroup struct + func CreateVolumeGroup(name string, pvs []*PhysicalVolume, tags []string, force bool) (*VolumeGroup, error) + func LookupVolumeGroup(name string) (*VolumeGroup, error) + func (vg *VolumeGroup) BytesFree() (uint64, error) + func (vg *VolumeGroup) BytesTotal() (uint64, error) + func (vg *VolumeGroup) Check() error + func (vg *VolumeGroup) CreateLogicalVolume(name string, sizeInBytes uint64, tags []string) (*LogicalVolume, error) + func (vg *VolumeGroup) ExtentCount() (uint64, error) + func (vg *VolumeGroup) ExtentFreeCount() (uint64, error) + func (vg *VolumeGroup) ExtentSize() (uint64, error) + func (vg *VolumeGroup) ListLogicalVolumeNames() ([]string, error) + func (vg *VolumeGroup) ListPhysicalVolumeNames() ([]string, error) + func (vg *VolumeGroup) LookupLogicalVolume(name string) (*LogicalVolume, error) + func (vg *VolumeGroup) Name() string + func (vg *VolumeGroup) Remove() error