alibaba

package
v0.0.0-...-2215086 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

func (a *AlibabaInfoer) GetCurrentPrices(region string) (map[string]types.Price, error)

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

func (a *AlibabaInfoer) Initialize() (map[string]map[string]types.Price, error)

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

type Config

type Config struct {
	Region    string
	AccessKey string
	SecretKey string
}

Jump to

Keyboard shortcuts

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