flavors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

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
}

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)

Jump to

Keyboard shortcuts

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