Documentation ¶
Index ¶
- type AlibabaInfoer
- func (a *AlibabaInfoer) GetCurrentPrices(region string) (map[string]types.Price, error)
- func (a *AlibabaInfoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)
- func (a *AlibabaInfoer) GetRegions(service string) (map[string]string, error)
- func (a *AlibabaInfoer) GetServiceImages(service, region string) ([]types.Image, error)
- func (a *AlibabaInfoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
- func (a *AlibabaInfoer) GetVersions(service, region string) ([]types.LocationVersion, error)
- func (a *AlibabaInfoer) GetVirtualMachines(region string) ([]types.VMInfo, error)
- func (a *AlibabaInfoer) GetZones(region string) ([]string, error)
- func (a *AlibabaInfoer) HasImages() bool
- func (a *AlibabaInfoer) HasShortLivedPriceInfo() bool
- func (a *AlibabaInfoer) Initialize() (map[string]map[string]types.Price, error)
- type AlibabaNetworkMapper
- type CommonDescriber
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaInfoer ¶
type AlibabaInfoer struct {
// contains filtered or unexported fields
}
AlibabaInfoer encapsulates the data and operations needed to access external Alibaba resources
func NewAlibabaInfoer ¶
func NewAlibabaInfoer(config Config, logger cloudinfo.Logger) (*AlibabaInfoer, error)
NewAlibabaInfoer creates a new instance of the Alibaba infoer.
func (*AlibabaInfoer) GetCurrentPrices ¶
GetCurrentPrices returns the current spot prices of every instance type in every availability zone in a given region
func (*AlibabaInfoer) GetProducts ¶
func (a *AlibabaInfoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)
GetProducts retrieves the available virtual machines based on the arguments provided
func (*AlibabaInfoer) GetRegions ¶
func (a *AlibabaInfoer) GetRegions(service string) (map[string]string, error)
GetRegions returns a map with available regions
func (*AlibabaInfoer) GetServiceImages ¶
func (a *AlibabaInfoer) GetServiceImages(service, region string) ([]types.Image, error)
GetServiceImages retrieves the images supported by the given service in the given region
func (*AlibabaInfoer) GetServiceProducts ¶
func (a *AlibabaInfoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
GetServiceProducts retrieves the products supported by the given service in the given region
func (*AlibabaInfoer) GetVersions ¶
func (a *AlibabaInfoer) GetVersions(service, region string) ([]types.LocationVersion, error)
GetVersions retrieves the kubernetes versions supported by the given service in the given region
func (*AlibabaInfoer) GetVirtualMachines ¶
func (a *AlibabaInfoer) GetVirtualMachines(region string) ([]types.VMInfo, error)
func (*AlibabaInfoer) GetZones ¶
func (a *AlibabaInfoer) GetZones(region string) ([]string, error)
GetZones returns the availability zones in a region
func (*AlibabaInfoer) HasImages ¶
func (a *AlibabaInfoer) HasImages() bool
HasImages - Alibaba support images
func (*AlibabaInfoer) HasShortLivedPriceInfo ¶
func (a *AlibabaInfoer) HasShortLivedPriceInfo() bool
HasShortLivedPriceInfo - Spot Prices are changing continuously on Alibaba
func (*AlibabaInfoer) Initialize ¶
Initialize is not needed on Alibaba because price info is changing frequently
type AlibabaNetworkMapper ¶
type AlibabaNetworkMapper struct { }
AlibabaNetworkMapper module object for handling Alibaba Cloud specific VM to Networking capabilities mapping
func (*AlibabaNetworkMapper) MapNetworkPerf ¶
func (nm *AlibabaNetworkMapper) MapNetworkPerf(ntwPerf string) (string, error)
MapNetworkPerf maps the network performance of the alibaba instance to the category supported by telescopes
type CommonDescriber ¶
type CommonDescriber interface {
ProcessCommonRequest(request *requests.CommonRequest) (*responses.CommonResponse, error)
}
CommonDescriber interface for all Alibaba API calls