util

package
v25.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMib2Gib

func ConvertMib2Gib(size int) int

func RegionFromZone

func RegionFromZone(zone string) string

RegionFromZone extracts the region from a zone. For example, us-central1-a produces us-central1

func ResourceSplitter

func ResourceSplitter(resource string) string

func ZoneFromURL

func ZoneFromURL(url string) string

ZoneFromURL extracts and returns the zone from the fully-qualified URL of a zonal Google Compute Engine resource. The nil value is returned if a zone can not be found.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL