Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2025 Changes in this version + const BasicNvmeName + const BasicVmName + const BasicVmType + const BasicVolumeType + const DefaultDiskReplicaType + const DefaultVmType + const DefaultVolumeType + const DiskMultiReplicaType + const DiskSingleReplicaType + const DiskThreeReplicaType + const StandardNvmeName + const StandardVolumeType + const StorageClassFsTypeName + const StorageClassMaxSizeName + const StorageClassMinSizeName + const StorageClassPlaceGroupID + const StorageClassTypeName + const StorageClassZoneId + const ZEC_MAX_DISK_SIZE_BYTES + const ZEC_MIN_DISK_SIZE_BYTES + var DefaultControllerServiceCapability = []csi.ControllerServiceCapability_RPC_Type + var DefaultNodeServiceCapability = []csi.NodeServiceCapability_RPC_Type + var DefaultPluginCapability = []*csi.PluginCapability + var DefaultVolumeAccessModeType = []csi.VolumeCapability_AccessMode_Mode + var VmTypeAttachPreferred = map[VmType]VolumeType + var VmTypeName = map[VmType]string + var VmTypeValue = map[string]VmType + var VolumeTypeAttachConstraint = map[VolumeType][]VmType + var VolumeTypeName = map[VolumeType]string + var VolumeTypeToMaxSize = map[VolumeType]int64 + var VolumeTypeToMinSize = map[VolumeType]int64 + func IsValidFileSystemType(fs string) bool + func NewControllerServiceCapability(cap csi.ControllerServiceCapability_RPC_Type) *csi.ControllerServiceCapability + func NewNodeServiceCapability(cap csi.NodeServiceCapability_RPC_Type) *csi.NodeServiceCapability + func NewVolumeCapabilityAccessMode(mode csi.VolumeCapability_AccessMode_Mode) *csi.VolumeCapability_AccessMode + func UpdateParmsZone(opt map[string]string, zoneID string) + type DiskDriver struct + func GetDiskDriver() *DiskDriver + func (d *DiskDriver) GetControllerCapability() []*csi.ControllerServiceCapability + func (d *DiskDriver) GetMaxVolumePerNode() int64 + func (d *DiskDriver) GetName() string + func (d *DiskDriver) GetNodeCapability() []*csi.NodeServiceCapability + func (d *DiskDriver) GetNodeId() string + func (d *DiskDriver) GetNodeZone() string + func (d *DiskDriver) GetPluginCapability() []*csi.PluginCapability + func (d *DiskDriver) GetTopologyVmTypeKey() string + func (d *DiskDriver) GetTopologyZoneKey() string + func (d *DiskDriver) GetVersion() string + func (d *DiskDriver) GetVolumeCapability() []*csi.VolumeCapability_AccessMode + func (d *DiskDriver) InitDiskDriver(input *InitDiskDriverInput) + func (d *DiskDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) bool + func (d *DiskDriver) ValidateNodeServiceRequest(c csi.NodeServiceCapability_RPC_Type) bool + func (d *DiskDriver) ValidatePluginCapabilityService(cap csi.PluginCapability_Service_Type) bool + func (d *DiskDriver) ValidateVolumeAccessMode(c csi.VolumeCapability_AccessMode_Mode) bool + func (d *DiskDriver) ValidateVolumeCapabilities(caps []*csi.VolumeCapability) bool + func (d *DiskDriver) ValidateVolumeCapability(cap *csi.VolumeCapability) bool + type InitDiskDriverInput struct + ControllerCap []csi.ControllerServiceCapability_RPC_Type + MaxVolume int64 + Name string + NodeCap []csi.NodeServiceCapability_RPC_Type + NodeId string + PluginCap []*csi.PluginCapability + Version string + VolumeCap []csi.VolumeCapability_AccessMode_Mode + ZoneId string + type Topology struct + func NewTopology(zoneid string, vt VmType) *Topology + func (t *Topology) GetVmType() VmType + func (t *Topology) GetZone() string + func (t *Topology) SetVmType(vt VmType) + func (t *Topology) SetZone(zoneid string) + type VmType int + func (v VmType) Int() int + func (v VmType) IsVaild() bool + type VolumeType int + func StringToType(s string) VolumeType + func (v VolumeType) Int() int + func (v VolumeType) IsValid() bool + func (v VolumeType) String() string + type ZecStorageClass struct + func NewDefaultZecStorageClassFromType(diskType VolumeType) *ZecStorageClass + func NewZecStorageClassFromMap(opt map[string]string) (*ZecStorageClass, error) + func (sc *ZecStorageClass) SetPlaceGroupID(placeGroupID string) + func (sc *ZecStorageClass) SetZone(zone string) + func (sc ZecStorageClass) ConvertToDiskCategory(vt VolumeType) string + func (sc ZecStorageClass) FormatVolumeSizeByte(sizeByte int64) int64 + func (sc ZecStorageClass) GetDiskType() VolumeType + func (sc ZecStorageClass) GetFsType() string + func (sc ZecStorageClass) GetMaxSizeByte() int64 + func (sc ZecStorageClass) GetMinSizeByte() int64 + func (sc ZecStorageClass) GetPlaceGroupID() string + func (sc ZecStorageClass) GetRequiredVolumeSizeByte(capRange *csi.CapacityRange) (int64, error) + func (sc ZecStorageClass) GetZone() string