Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockDeviceName ¶
BlockDeviceName returns the name of the provided EBS device.
func BlockDevices ¶
BlockDevices returns the EBS devices attached to the local host.
func InstanceID ¶
InstanceID returns the instance ID for the local host.
Types ¶
type DeviceRange ¶
type DeviceRange struct { ParentLetters []string ChildLetters []string NextDeviceInfo *types.NextDeviceInfo DeviceRE *regexp.Regexp }
DeviceRange holds slices for device namespace iteration and patterns for matching device nodes to specific namespaces.
EBS suggests to use /dev/sd[f-p] for Linux EC2 instances. Also on Linux EC2 instances, although the device path may show up as /dev/sd* on the EC2 side, it will appear locally as /dev/xvd*
The broadest device path namespace available for Linux EC2 instances is /dev/xvd[b-c][a-z] See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.htm
func GetDeviceRange ¶
func GetDeviceRange(useLargeDeviceRange bool) *DeviceRange
GetDeviceRange returns a specified DeviceRange object