Documentation ¶
Index ¶
- Constants
- func BytesToGiB(volumeSizeBytes int64) int64
- func ConvertTagsToMap(tags string) (map[string]string, error)
- func GetMountOptions(options []string) string
- func GiBToBytes(volumeSizeGiB int64) int64
- func MakeDir(pathname string, perm os.FileMode) error
- func RoundUpBytes(volumeSizeBytes int64) int64
- func RoundUpGiB(volumeSizeBytes int64) int64
- func TrimDuplicatedSpace(s string) string
- type LockMap
- type OsInfo
Constants ¶
View Source
const ( GiB = 1024 * 1024 * 1024 TiB = 1024 * GiB )
Variables ¶
This section is empty.
Functions ¶
func ConvertTagsToMap ¶ added in v1.2.0
func GetMountOptions ¶
GetMountOptions return options with string list separated by space
func RoundUpBytes ¶
RoundUpBytes rounds up the volume size in bytes up to multiplications of GiB in the unit of Bytes
func RoundUpGiB ¶
RoundUpGiB rounds up the volume size in bytes up to multiplications of GiB in the unit of GiB
func TrimDuplicatedSpace ¶ added in v1.19.5
Types ¶
Click to show internal directories.
Click to hide internal directories.