Documentation ¶
Index ¶
- Constants
- func CopyMap(srcMap interface{}) map[string]interface{}
- func ExecShellCmd(format string, args ...interface{}) (string, error)
- func GetAccessModeType(accessMode csi.VolumeCapability_AccessMode_Mode) string
- func GetAlua(alua map[string]interface{}, host string) map[string]interface{}
- func GetBackendAndVolume(volumeId string) (string, string)
- func GetFSSharePath(name string) string
- func GetFSSnapshotName(name string) string
- func GetFileSystemName(name string) string
- func GetFusionStorageLunName(name string) string
- func GetFusionStorageSnapshotName(name string) string
- func GetHostName() (string, error)
- func GetLunName(name string) string
- func GetLunUniqueId(protocol string, lun map[string]interface{}) (string, error)
- func GetPathTail(device string) string
- func GetSharePath(name string) string
- func GetSnapshotName(name string) string
- func IsDoradoV6(SystemInfo map[string]interface{}) bool
- func IsSupportFeature(features map[string]int, feature string) bool
- func MergeMap(args ...map[string]interface{}) map[string]interface{}
- func PathExist(path string) (bool, error)
- func RandomInt(n int) int
- func ReflectCall(obj interface{}, method string, args ...interface{}) []reflect.Value
- func RoundUpSize(volumeSizeBytes int64, allocationUnitBytes int64) int64
- func SplitSnapshotId(snapshotId string) (string, string, string)
- func SplitVolumeId(volumeId string) (string, string)
- func StrToBool(str string) bool
- func TransVolumeCapacity(size int64, unit int64) int64
- func WaitUntil(f func() (bool, error), timeout time.Duration, interval time.Duration) error
- type Flock
- type Semaphore
- type VolumeMetrics
Constants ¶
View Source
const (
DoradoV6Version = "V600R003C00"
)
Variables ¶
This section is empty.
Functions ¶
func ExecShellCmd ¶
func GetAccessModeType ¶
func GetAccessModeType(accessMode csi.VolumeCapability_AccessMode_Mode) string
func GetBackendAndVolume ¶
func GetFSSharePath ¶
func GetFSSnapshotName ¶
func GetFileSystemName ¶
func GetFusionStorageLunName ¶
func GetHostName ¶
func GetLunName ¶
func GetLunUniqueId ¶
func GetPathTail ¶
func GetSharePath ¶
func GetSnapshotName ¶
func IsDoradoV6 ¶
func ReflectCall ¶
func RoundUpSize ¶
func SplitVolumeId ¶
func TransVolumeCapacity ¶
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
func (*Semaphore) AvailablePermits ¶
type VolumeMetrics ¶
type VolumeMetrics struct { Available *resource.Quantity Capacity *resource.Quantity InodesUsed *resource.Quantity Inodes *resource.Quantity InodesFree *resource.Quantity Used *resource.Quantity }
func GetVolumeMetrics ¶
func GetVolumeMetrics(path string) (*VolumeMetrics, error)
Click to show internal directories.
Click to hide internal directories.