Documentation
¶
Index ¶
Constants ¶
View Source
const ( BYTE int64 = 1.0 << (10 * iota) KIBIBYTE MEBIBYTE GIBIBYTE TEBIBYTE )
Variables ¶
This section is empty.
Functions ¶
func RoundUpSize ¶
RoundUpSize calculates how many allocation units are needed to accommodate a volume of given size. E.g. when user wants 1500MiB volume, while AWS EBS allocates volumes in gibibyte-sized chunks, RoundUpSize(1500 * 1024*1024, 1024*1024*1024) returns '2' (2 GiB is the smallest allocatable volume that can hold 1500MiB)
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mount is a generated GoMock package.
|
Package mount is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.