Documentation ¶
Index ¶
- func DescribeAvailabilityZones(regionName string) ([]*ec2.AvailabilityZone, error)
- func DescribeAvailabilityZonesAsync(regionName string, c chan AvailabilityZonesResult)
- func GetAvailabilityZones() []string
- func GetDedicatedHostState(hostID string) (*string, error)
- func GetInstanceTypesOfferingsByRegion(region string) ([]string, error)
- func GetRandomAvailabilityZone(region string) (*string, error)
- func GetRegions() ([]string, error)
- func GetZoneName(azID string, azDescriptions []*ec2.AvailabilityZone) (string, error)
- func IsInstaceTypeOffered(instanceType, region string) (bool, error)
- func LokupRegionOfferingInstanceType(instanceType string) (*string, error)
- type AvailabilityZonesResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeAvailabilityZones ¶
func DescribeAvailabilityZones(regionName string) ([]*ec2.AvailabilityZone, error)
func DescribeAvailabilityZonesAsync ¶
func DescribeAvailabilityZonesAsync(regionName string, c chan AvailabilityZonesResult)
func GetAvailabilityZones ¶
func GetAvailabilityZones() []string
func GetDedicatedHostState ¶
This function check on all regions for the dedicated host and return its state if found or error if no host is found within the hostID
func GetInstanceTypesOfferingsByRegion ¶
Get InstanceTypes offerings on current location
func GetRegions ¶
func GetZoneName ¶
func GetZoneName(azID string, azDescriptions []*ec2.AvailabilityZone) (string, error)
func IsInstaceTypeOffered ¶
Check if a instance type is available at the current location
func LokupRegionOfferingInstanceType ¶
Check on all regions which offers the type of instance got one having it
Types ¶
type AvailabilityZonesResult ¶
type AvailabilityZonesResult struct { AvailabilityZones []*ec2.AvailabilityZone Err error }
Click to show internal directories.
Click to hide internal directories.