Documentation ¶
Index ¶
- Constants
- func BytesToGiB(volumeSizeBytes int64) int64
- func GetAccessModes(caps []*csi.VolumeCapability) *[]string
- func GiBToBytes(volumeSizeGiB int64) int64
- func IsSBE(region string) bool
- func ParseEndpoint(endpoint string) (string, string, error)
- func RoundUpBytes(volumeSizeBytes int64) int64
- func RoundUpGiB(volumeSizeBytes int64) int64
- func StringIsAlphanumeric(s string) bool
Constants ¶
View Source
const (
GiB = 1024 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func GetAccessModes ¶ added in v0.7.0
func GetAccessModes(caps []*csi.VolumeCapability) *[]string
GetAccessModes returns a slice containing all of the access modes defined in the passed in VolumeCapabilities.
func RoundUpBytes ¶
RoundUpBytes rounds up the volume size in bytes upto multiplications of GiB in the unit of Bytes
func RoundUpGiB ¶
RoundUpGiB rounds up the volume size in bytes upto multiplications of GiB in the unit of GiB
func StringIsAlphanumeric ¶ added in v1.24.0
StringIsAlphanumeric returns true if a given string contains only English letters or numbers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.