Documentation ¶
Index ¶
- type Config
- type ITRACloudInfo
- type ITRAPriceInfo
- type ITRAResponse
- type Infoer
- func (i *Infoer) GetCloudInfoFromITRA(partNumber string) (info ITRACloudInfo, err error)
- func (i *Infoer) GetCurrentPrices(region string) (map[string]types.Price, error)
- func (i *Infoer) GetProductPrice(specs ShapeSpecs) (float64, error)
- func (i *Infoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)
- func (i *Infoer) GetRegions(service string) (map[string]string, error)
- func (i *Infoer) GetServiceImages(service, region string) ([]types.Image, error)
- func (i *Infoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
- func (i *Infoer) GetVersions(service, region string) ([]types.LocationVersion, error)
- func (i *Infoer) GetVirtualMachines(region string) ([]types.VMInfo, error)
- func (i *Infoer) GetZones(region string) ([]string, error)
- func (i *Infoer) HasImages() bool
- func (i *Infoer) HasShortLivedPriceInfo() bool
- func (i *Infoer) Initialize() (map[string]map[string]types.Price, error)
- type OCINetworkMapper
- type ShapeSpecs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITRACloudInfo ¶
type ITRACloudInfo struct { PartNumber string `json:"partNumber"` Prices []ITRAPriceInfo `json:"prices"` }
ITRACloudInfo holds information of a product
func (*ITRACloudInfo) GetPrice ¶
func (ipi *ITRACloudInfo) GetPrice(model string) float64
GetPrice gets the value of the given price model from gathered prices
type ITRAPriceInfo ¶
ITRAPriceInfo holds price information
type ITRAResponse ¶
type ITRAResponse struct { Items []ITRACloudInfo `json:"items"` Link string `json:"canonicalLink"` HasMode bool `json:"hasMore"` Limit uint `json:"limit"` Offset uint `json:"offset"` }
ITRAResponse represents a response of ITRA product info request
type Infoer ¶
type Infoer struct {
// contains filtered or unexported fields
}
Infoer encapsulates the data and operations needed to access external resources
func NewOracleInfoer ¶
NewOracleInfoer creates a new instance of the Oracle infoer.
func (*Infoer) GetCloudInfoFromITRA ¶
func (i *Infoer) GetCloudInfoFromITRA(partNumber string) (info ITRACloudInfo, err error)
GetCloudInfoFromITRA gets product information from ITRA api by part number
func (*Infoer) GetCurrentPrices ¶
GetCurrentPrices retrieves all the spot prices in a region
func (*Infoer) GetProductPrice ¶
func (i *Infoer) GetProductPrice(specs ShapeSpecs) (float64, error)
GetProductPrices gets prices for available shapes from ITRA
func (*Infoer) GetProducts ¶
GetProducts retrieves the available virtual machines types in a region
func (*Infoer) GetRegions ¶
GetRegions returns a map with available regions
func (*Infoer) GetServiceImages ¶
GetServiceImages retrieves the images supported by the given service in the given region
func (*Infoer) GetServiceProducts ¶
func (i *Infoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
GetServiceProducts retrieves the products supported by the given service in the given region
func (*Infoer) GetVersions ¶
func (i *Infoer) GetVersions(service, region string) ([]types.LocationVersion, error)
GetVersions retrieves the kubernetes versions supported by the given service in the given region
func (*Infoer) GetVirtualMachines ¶
func (*Infoer) HasShortLivedPriceInfo ¶
HasShortLivedPriceInfo - Oracle doesn't have preemptible instances
type OCINetworkMapper ¶
type OCINetworkMapper struct { }
OCINetworkMapper module object for handling Oracle specific VM to Networking capabilities mapping
func (*OCINetworkMapper) MapNetworkPerf ¶
func (nm *OCINetworkMapper) MapNetworkPerf(ntwPerf string) (string, error)
MapNetworkPerf maps the network performance of the instance to the category supported by telescopes