Documentation ¶
Index ¶
- Constants
- func CleanUp(scName string, volNames []string) error
- func CreateAndRunRunningFio(sizeMiB int, volName string) *coreV1.Pod
- func CreateAndRunSizedFio(uuid string, sizeMiB int, volName string, expectError bool)
- func CreateSc(provisioningType common.ProvisioningType, replicaCount int) (string, error)
- func CreateVolume(scName, volBaseName string, volSizeMb int) (string, string, error)
- func GetPoolSizeFraction(pool common.MayastorPool, percentCapacity float64, unit string) int
- func GetPools() []common.MayastorPool
- func GetReplicasUuid(replicaTopology common.ReplicaTopology) []string
- func GetSizePerUnits(b uint64, unit string) float64
Constants ¶
View Source
const ( DefTimeoutSecs = 600 RebuildTimeoutSecs = 120 DefPoolCommitment = 2.2 )
Variables ¶
This section is empty.
Functions ¶
func CreateAndRunSizedFio ¶
func CreateSc ¶
func CreateSc(provisioningType common.ProvisioningType, replicaCount int) (string, error)
func CreateVolume ¶
func GetPoolSizeFraction ¶
func GetPoolSizeFraction(pool common.MayastorPool, percentCapacity float64, unit string) int
returns the percentage of the disk pool in the selected units (1.00 = 100%)
func GetPools ¶
func GetPools() []common.MayastorPool
func GetReplicasUuid ¶
func GetReplicasUuid(replicaTopology common.ReplicaTopology) []string
func GetSizePerUnits ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.