Documentation ¶
Index ¶
- type Config
- type GceInfoer
- func (g *GceInfoer) GetCurrentPrices(region string) (map[string]types.Price, error)
- func (g *GceInfoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)
- func (g *GceInfoer) GetRegions(service string) (map[string]string, error)
- func (g *GceInfoer) GetServiceImages(service, region string) ([]types.Image, error)
- func (g *GceInfoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
- func (g *GceInfoer) GetVersions(service, region string) ([]types.LocationVersion, error)
- func (g *GceInfoer) GetVirtualMachines(region string) ([]types.VMInfo, error)
- func (g *GceInfoer) GetZones(region string) ([]string, error)
- func (g *GceInfoer) HasImages() bool
- func (g *GceInfoer) HasShortLivedPriceInfo() bool
- func (g *GceInfoer) Initialize() (map[string]map[string]types.Price, error)
- type GceNetworkMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GceInfoer ¶
type GceInfoer struct {
// contains filtered or unexported fields
}
GceInfoer encapsulates the data and operations needed to access external resources
func NewGoogleInfoer ¶
NewGoogleInfoer creates a new instance of the Google infoer.
func (*GceInfoer) GetCurrentPrices ¶
GetCurrentPrices retrieves all the spot prices in a region
func (*GceInfoer) GetProducts ¶
func (g *GceInfoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)
GetProducts retrieves the available virtual machines based on the arguments provided Queries the Google Cloud Compute API's machine type list endpoint and CloudBilling's sku list endpoint
func (*GceInfoer) GetRegions ¶
GetRegions returns a map with available regions transforms the api representation into a "plain" map
func (*GceInfoer) GetServiceImages ¶
GetServiceImages retrieves the images supported by the given service in the given region
func (*GceInfoer) GetServiceProducts ¶
func (g *GceInfoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)
GetServiceProducts retrieves the products supported by the given service in the given region
func (*GceInfoer) GetVersions ¶
func (g *GceInfoer) GetVersions(service, region string) ([]types.LocationVersion, error)
GetVersions retrieves the kubernetes versions supported by the given service in the given region
func (*GceInfoer) GetVirtualMachines ¶
func (*GceInfoer) HasShortLivedPriceInfo ¶
HasShortLivedPriceInfo - Google Cloud has static prices for preemptible instances as well
type GceNetworkMapper ¶
type GceNetworkMapper struct { }
GceNetworkMapper module object for handling Google Cloud specific VM to Networking capabilities mapping
func (*GceNetworkMapper) MapNetworkPerf ¶
func (nm *GceNetworkMapper) MapNetworkPerf(ntwPerf string) (string, error)
MapNetworkPerf maps the network performance of the google instance to the category supported by telescopes