data

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func GetDedicatedHostState(hostID string) (*string, error)

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

func GetInstanceTypesOfferingsByRegion(region string) ([]string, error)

Get InstanceTypes offerings on current location

func GetRandomAvailabilityZone

func GetRandomAvailabilityZone(region string) (*string, error)

func GetRegions

func GetRegions() ([]string, error)

func GetZoneName

func GetZoneName(azID string, azDescriptions []*ec2.AvailabilityZone) (string, error)

func IsInstaceTypeOffered

func IsInstaceTypeOffered(instanceType, region string) (bool, error)

Check if a instance type is available at the current location

func LokupRegionOfferingInstanceType

func LokupRegionOfferingInstanceType(instanceType string) (*string, error)

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
}

Jump to

Keyboard shortcuts

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