Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(c *gophercloud.ServiceClient) pagination.Pager
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 ¶
func Get(c *gophercloud.ServiceClient, id string) GetResult
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.