Documentation ¶
Index ¶
- Constants
- func BytesToGiB(volumeSizeBytes int64) int32
- func CountMACAddresses(s string) int
- func GetAccessModes(caps []*csi.VolumeCapability) *[]string
- func GiBToBytes(volumeSizeGiB int32) int64
- func IsSBE(region string) bool
- func NormalizeWindowsPath(path string) string
- func ParseEndpoint(endpoint string, hostprocess bool) (string, string, error)
- func RoundUpBytes(volumeSizeBytes int64) int64
- func RoundUpGiB(volumeSizeBytes int64) (int32, error)
- func SanitizeRequest(req interface{}) interface{}
- func StringIsAlphanumeric(s string) bool
Constants ¶
View Source
const ( GiB = int64(1024 * 1024 * 1024) DefaultBlockSize = 4096 )
Variables ¶
This section is empty.
Functions ¶
func CountMACAddresses ¶ added in v1.32.0
CountMACAddresses returns the amount of MAC addresses within a string
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 NormalizeWindowsPath ¶ added in v1.31.0
NormalizeWindowsPath normalizes a Windows path
func RoundUpBytes ¶
RoundUpBytes rounds up the volume size in bytes up to multiplications of GiB
func RoundUpGiB ¶
RoundUpGiB rounds up the volume size in bytes upto multiplications of GiB in the unit of GiB
func SanitizeRequest ¶ added in v1.31.0
func SanitizeRequest(req interface{}) interface{}
SanitizeRequest takes a request object and returns a copy of the request with the "Secrets" field cleared.
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.