Documentation ¶
Index ¶
- Constants
- func ConvertNodeName(node string) string
- func GetNamespace() string
- func GetNodeName() string
- func GetPoolNameAccordingDiskType(diskType string) (string, error)
- func MergeLocalVolumeReplicaMap(localVolumeReplicaMap ...map[string][]*lsapisv1alpha1.LocalVolumeReplica) map[string][]*lsapisv1alpha1.LocalVolumeReplica
Constants ¶
View Source
const ( DiskClassNameHDD = "HDD" DiskClassNameSSD = "SSD" DiskClassNameNVMe = "NVMe" )
disk class
View Source
const ( PoolNamePrefix = "LocalStorage_Pool" PoolNameForHDD = PoolNamePrefix + DiskClassNameHDD PoolNameForSSD = PoolNamePrefix + DiskClassNameSSD PoolNameForNVMe = PoolNamePrefix + DiskClassNameNVMe )
consts
Variables ¶
This section is empty.
Functions ¶
func ConvertNodeName ¶
ConvertNodeName e.g.(10.23.10.12 => 10-23-10-12)
func GetNamespace ¶
func GetNamespace() string
GetNamespace get Namespace from env, else it returns error
func GetNodeName ¶
func GetNodeName() string
GetNodeName gets the node name from env, else returns an error
func MergeLocalVolumeReplicaMap ¶
func MergeLocalVolumeReplicaMap(localVolumeReplicaMap ...map[string][]*lsapisv1alpha1.LocalVolumeReplica) map[string][]*lsapisv1alpha1.LocalVolumeReplica
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.