Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = fmt.Errorf("Flavors functionality not implemented.")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(e string, a identity.AuthResults, ao identity.AuthOptions) *Client
type Flavor ¶
type Flavor struct {
Disk int
Id string
Name string
Ram int
RxTxFactor float64 `mapstructure:"rxtx_factor"`
Swap int
VCpus int
}
Flavor records represent (virtual) hardware configurations for server resources in a region.
The Id field contains the flavor's unique identifier. For example, this identifier will be useful when specifying which hardware configuration to use for a new server instance.
The Disk and Ram fields provide a measure of storage space offered by the flavor, in GB and MB, respectively.
The Name field provides a human-readable moniker for the flavor.
Swap indicates how much space is reserved for swap. If not provided, this field will be set to 0.
VCpus indicates how many (virtual) CPUs are available for this flavor.
func GetFlavors ¶
func GetFlavors(lr ListResults) ([]Flavor, error)
type ListResults ¶
type ListResults map[string]interface{}
func List ¶
func List(c *Client) (ListResults, error)
Click to show internal directories.
Click to hide internal directories.