package
0.11.4
Repository: https://github.com/codedellemc/rexray.git
Documentation: pkg.go.dev

# Functions

GetDisks returns a string slice containing the names of all the disks attached to the local instance.
GetIndex returns the trailing "document" in a URL.
InstanceID returns the instance ID for the local host.
IsGCEInstance returns a flag indicating whether the executing host is a GCE instance based on whether or not the metadata URL can be accessed.
IsValidDiskName returns a boolean of whether the given name is valid for a GCE disk.

# Constants

DiskNameRX contains the regex pattern for matching a valid GCE disk name the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

# Structs

Disk holds the data returned in the disks metadata.