cloudnetworks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2015 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List returns all cloud networks that are associated with RackConnect. The ID returned for each network is the same as the ID returned by the networks package.

Types

type CloudNetwork

type CloudNetwork struct {
	// Specifies the ID of the newtork.
	ID string `mapstructure:"id"`
	// Specifies the user-provided name of the network.
	Name string `mapstructure:"name"`
	// Specifies the IP range for this network.
	CIDR string `mapstructure:"cidr"`
	// Specifies the time the network was created.
	CreatedAt time.Time `mapstructure:"-"`
	// Specifies the time the network was last updated.
	UpdatedAt time.Time `mapstructure:"-"`
}

CloudNetwork represents a network associated with a RackConnect configuration.

func ExtractCloudNetworks

func ExtractCloudNetworks(page pagination.Page) ([]CloudNetwork, error)

ExtractCloudNetworks extracts and returns CloudNetworks. It is used while iterating over a cloudnetworks.List call.

type CloudNetworkPage

type CloudNetworkPage struct {
	pagination.SinglePageBase
}

CloudNetworkPage is the page returned by a pager when traversing over a collection of CloudNetworks.

func (CloudNetworkPage) IsEmpty

func (r CloudNetworkPage) IsEmpty() (bool, error)

IsEmpty returns true if a CloudNetworkPage contains no CloudNetworks.

type GetResult

type GetResult struct {
	gophercloud.Result
}

GetResult represents the result of a Get operation.

func Get

Get retrieves a specific cloud network (that is associated with RackConnect) based on its unique ID.

func (GetResult) Extract

func (r GetResult) Extract() (*CloudNetwork, error)

Extract is a function that extracts a CloudNetwork from a GetResult.

Jump to

Keyboard shortcuts

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