Documentation ¶
Index ¶
- Constants
- func BytesToGiB(volumeSizeBytes int64) int64
- func EnvBackoff() wait.Backoff
- func GetVersionJSON() (string, error)
- func GiBToBytes(volumeSizeGiB int64) int64
- func OscEndpoint(region string, service string) string
- func OscSetupMetadataResolver() endpoints.ResolverFunc
- func OscSetupServiceResolver(region string) endpoints.ResolverFunc
- func ParseEndpoint(endpoint string) (string, string, error)
- func RoundUpBytes(volumeSizeBytes int64) int64
- func RoundUpGiB(volumeSizeBytes int64) int64
- type VersionInfo
Constants ¶
View Source
const (
GiB = 1024 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func EnvBackoff ¶
func GetVersionJSON ¶
func OscEndpoint ¶
func OscSetupMetadataResolver ¶
func OscSetupMetadataResolver() endpoints.ResolverFunc
func OscSetupServiceResolver ¶
func OscSetupServiceResolver(region string) endpoints.ResolverFunc
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
Types ¶
type VersionInfo ¶
type VersionInfo struct { DriverVersion string `json:"driverVersion"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` Compiler string `json:"compiler"` Platform string `json:"platform"` }
func GetVersion ¶
func GetVersion() VersionInfo
Click to show internal directories.
Click to hide internal directories.