# Packages
Package testing for bgp speakers.
# Functions
AddBGPPeer add the BGP peer to the speaker a.k.a.
AddGatewayNetwork a.k.a.
Create accepts a CreateOpts and create a BGP Speaker.
Delete accepts a unique ID and deletes the bgp speaker associated with it.
ExtractAdvertisedRoutes accepts a Page struct, a.k.a.
ExtractAdvertisedRoutesInto extract the advertised routes from the first param into the 2nd.
ExtractBGPSpeakers accepts a Page struct, specifically a BGPSpeakerPage struct, and extracts the elements into a slice of BGPSpeaker structs.
ExtractBGPSpeakersInto accepts a Page struct and an interface{}.
Get retrieve the specific bgp speaker by its uuid.
GetAdvertisedRoutes a.k.a.
List the bgp speakers.
RemoveBGPPeer remove the BGP peer from the speaker, a.k.a.
RemoveGatewayNetwork a.k.a.
Update accepts a UpdateOpts and update the BGP Speaker.
# Structs
AddBGPPeerOpts represents options used to add a BGP Peer to a BGP Speaker.
AddBGPPeerResult represent the response of the PUT /v2.0/bgp-speakers/{bgp-speaker-id}/add-bgp-peer.
AddGatewayNetworkOpts represents the data that would be PUT to the endpoint.
AddGatewayNetworkResult represents the data that would be PUT to /v2.0/bgp-speakers/{bgp-speaker-id}/add_gateway_network.
AdvertisedRoute represents an advertised route.
AdvertisedRoutePage is the page returned by a pager when you call.
BGPSpeaker BGP Speaker.
BGPSpeakerPage is the page returned by a pager when traversing over a collection of bgp speakers.
CreateOpts represents options used to create a BGP Speaker.
CreateResult represents the result of a create operation.
DeleteResult represents the result of a delete operation.
GetResult represents the result of a get operation.
RemoveBGPPeerResult represent the response of the PUT /v2.0/bgp-speakers/{bgp-speaker-id}/remove-bgp-peer There is no body content for the response of a successful DELETE request.
RemoveGatewayNetworkResult represents the data that would be PUT to /v2.0/bgp-speakers/{bgp-speaker-id}/remove_gateway_network.
UpdateOpts represents options used to update a BGP Speaker.
UpdateResult represents the result of an update operation.
# Interfaces
AddBGPPeerOptsBuilder declare a funtion that encode AddBGPPeerOpts into a request body.
AddGatewayNetworkOptsBuilder declare a function that build AddGatewayNetworkOpts into a request body.
CreateOptsBuilder declare a function that build CreateOpts into a Create request body.
RemoveBGPPeerOptsBuilder declare a funtion that encode RemoveBGPPeerOpts into a request body.
RemoveGatewayNetworkOptsBuilder declare a function that build RemoveGatewayNetworkOpts into a request body.
UpdateOptsBuilder allow the extensions to add additional parameters to the Update request.
# Type aliases
RemoveBGPPeerOpts represents options used to remove a BGP Peer to a BGP Speaker.
RemoveGatewayNetworkOpts represent the data that would be PUT to the endpoint.