Documentation
¶
Index ¶
- func DescribeAvailabilityZones(regionName string) ([]ec2types.AvailabilityZone, error)
- func DescribeAvailabilityZonesAsync(regionName string, c chan AvailabilityZonesResult)
- func GetAvailabilityZones() []string
- func GetDedicatedHost(hostID string) (*ec2Types.Host, error)
- func GetDedicatedHosts(r DedicatedHostResquest) ([]ec2Types.Host, error)
- func GetInstanceByRegion(r InstanceResquest, regionName string) ([]ec2Types.Instance, error)
- func GetRandomAvailabilityZone(region string, excludedAZs []string) (*string, error)
- func GetRegions() ([]string, error)
- func GetZoneName(azID string, azDescriptions []ec2types.AvailabilityZone) (string, error)
- func IsInstanceTypeOfferedByAZ(region, instanceType, az string) (bool, error)
- func IsInstanceTypeOfferedByRegion(instanceType, region string) (bool, error)
- func LokupRegionOfferingInstanceType(instanceType string) (*string, error)
- type AvailabilityZonesResult
- type DedicatedHostResquest
- type ImageInfo
- type ImageRequest
- type InstanceResquest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeAvailabilityZones ¶
func DescribeAvailabilityZones(regionName string) ([]ec2types.AvailabilityZone, error)
func DescribeAvailabilityZonesAsync ¶
func DescribeAvailabilityZonesAsync(regionName string, c chan AvailabilityZonesResult)
func GetAvailabilityZones ¶
func GetAvailabilityZones() []string
func GetDedicatedHosts ¶
func GetDedicatedHosts(r DedicatedHostResquest) ([]ec2Types.Host, error)
This function check on all regions for the dedicated host and return the list of hosts matching the request params
func GetInstanceByRegion ¶
func GetInstanceByRegion(r InstanceResquest, regionName string) ([]ec2Types.Instance, error)
func GetRegions ¶
func GetZoneName ¶
func GetZoneName(azID string, azDescriptions []ec2types.AvailabilityZone) (string, error)
func IsInstanceTypeOfferedByRegion ¶
Get InstanceTypes offerings on 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 []ec2types.AvailabilityZone Err error }
type DedicatedHostResquest ¶
type ImageInfo ¶
func FindAMI ¶
This function check all regions to get the AMI filter by its name it will return the first region where the AMI is offered
func GetAMI ¶
func GetAMI(r ImageRequest) (*ImageInfo, error)
GetAMI based on params defined by request In case multiple AMIs it will return the newest
func IsAMIOffered ¶
func IsAMIOffered(r ImageRequest) (bool, *ImageInfo, error)
IsAMIOffered checks if an ami based on its Name is offered on a specific region
type ImageRequest ¶
type InstanceResquest ¶
Click to show internal directories.
Click to hide internal directories.