Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBGPSpeakersInto ¶
func ExtractBGPSpeakersInto(r pagination.Page, v interface{}) error
Types ¶
type BGPSpeaker ¶
type BGPSpeaker struct { // UUID for the bgp speaker ID string `json:"id"` // Human-readable name for the bgp speaker. Might not be unique. Name string `json:"name"` // TenantID is the project owner of the bgp speaker. TenantID string `json:"tenant_id"` // ProjectID is the project owner of the bgp speaker. ProjectID string `json:"project_id"` // If the speaker would advertise floating ip host routes AdvertiseFloatingIPHostRoutes bool `json:"advertise_floating_ip_host_routes"` // If the speaker would advertise tenant networks AdvertiseTenantNetworks bool `json:"advertise_tenant_networks"` // IP version IPVersion int `json:"ip_version"` // Local Autonomous System LocalAS int `json:"local_as"` // The uuid of the Networks configured with this speaker Networks []string `json:"networks"` // The uuid of the BGP Peer Configured with this speaker Peers []string `json:"peers"` }
BGPSpeaker BGP Speaker
func ExtractBGPSpeakers ¶
func ExtractBGPSpeakers(r pagination.Page) ([]BGPSpeaker, error)
ExtractBGPSpeakers accepts a Page struct, specifically a BGPSpeakerPage struct, and extracts the elements into a slice of BGPSpeaker structs. In other words, a generic collection is mapped into a relevant slice.
type BGPSpeakerPage ¶
type BGPSpeakerPage struct {
pagination.SinglePageBase
}
BGPSpeakerPage is the page returned by a pager when traversing over a collection of bgp speakers.
func (BGPSpeakerPage) IsEmpty ¶
func (r BGPSpeakerPage) IsEmpty() (bool, error)
IsEmpty checks whether a BGPSpeakerPage struct is empty.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a BGPSpeaker.
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) (r GetResult)
Get retrieve the specific bgp speaker by its uuid
func (GetResult) Extract ¶
func (r GetResult) Extract() (*BGPSpeaker, error)
Extract is a function that accepts a result and extracts a bgp speaker resource.
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.