cloud

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegionDetails

func GetRegionDetails(cloud_id int)

GetRegionDetails will return details about given region

func ListClosest

func ListClosest(user_lat float32, user_long float32, number int)

ListClostest will return the given number of closest regions in order (of which is closest)

Types

type InstanceSize

type InstanceSize struct {
	ID           string `yaml:"id"`
	Name         string `yaml:"name"`
	ProviderID   string `yaml:"provider_id"`
	ProviderName string `yaml:"provider_name"`
	CPUs         int    `yaml:"cpus"`
	Memory       int    `yaml:"memory"`
	Disk         int    `yaml:"disk"`
	Transfer     int    `yaml:"transfer"`
	Price        int    `yaml:"price"`
}

type InstanceSizes

type InstanceSizes []InstanceSize

type Region

type Region struct {
	ID           int    `yaml:"id"`
	Name         string `yaml:"name"`
	ProviderID   int    `yaml:"provider_id"`
	ProviderName string `yaml:"provider_name"`
}

type Regions

type Regions []Region

func ListRegions

func ListRegions() []Regions

ListRegions returns a list of all regions for a provider

Jump to

Keyboard shortcuts

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