vpnaas

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEndpointGroup

func CreateEndpointGroup(t *testing.T, client *gophercloud.ServiceClient) (*endpointgroups.EndpointGroup, error)

CreateEndpointGroup will create an endpoint group with a random name. An error will be returned if the group could not be created.

func CreateEndpointGroupWithCIDR

func CreateEndpointGroupWithCIDR(t *testing.T, client *gophercloud.ServiceClient, cidr string) (*endpointgroups.EndpointGroup, error)

CreateEndpointGroupWithCIDR will create an endpoint group with a random name and a specified CIDR. An error will be returned if the group could not be created.

func CreateEndpointGroupWithSubnet

func CreateEndpointGroupWithSubnet(t *testing.T, client *gophercloud.ServiceClient, subnetID string) (*endpointgroups.EndpointGroup, error)

CreateEndpointGroupWithSubnet will create an endpoint group with a random name. An error will be returned if the group could not be created.

func CreateIKEPolicy

func CreateIKEPolicy(t *testing.T, client *gophercloud.ServiceClient) (*ikepolicies.Policy, error)

CreateIKEPolicy will create an IKE Policy with a random name and given rule. An error will be returned if the policy could not be created.

func CreateIPSecPolicy

func CreateIPSecPolicy(t *testing.T, client *gophercloud.ServiceClient) (*ipsecpolicies.Policy, error)

CreateIPSecPolicy will create an IPSec Policy with a random name and given rule. An error will be returned if the rule could not be created.

func CreateService

func CreateService(t *testing.T, client *gophercloud.ServiceClient, routerID string) (*services.Service, error)

CreateService will create a Service with a random name and a specified router ID An error will be returned if the service could not be created.

func CreateSiteConnection

func CreateSiteConnection(t *testing.T, client *gophercloud.ServiceClient, ikepolicyID string, ipsecpolicyID string, serviceID string, peerEPGroupID string, localEPGroupID string) (*siteconnections.Connection, error)

CreateSiteConnection will create an IPSec site connection with a random name and specified IKE policy, IPSec policy, service, peer EP group and local EP Group. An error will be returned if the connection could not be created.

func DeleteEndpointGroup

func DeleteEndpointGroup(t *testing.T, client *gophercloud.ServiceClient, epGroupID string)

DeleteEndpointGroup will delete an Endpoint group with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeleteIKEPolicy

func DeleteIKEPolicy(t *testing.T, client *gophercloud.ServiceClient, policyID string)

DeleteIKEPolicy will delete an IKE policy with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeleteIPSecPolicy

func DeleteIPSecPolicy(t *testing.T, client *gophercloud.ServiceClient, policyID string)

DeleteIPSecPolicy will delete an IPSec policy with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeleteService

func DeleteService(t *testing.T, client *gophercloud.ServiceClient, serviceID string)

DeleteService will delete a service with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeleteSiteConnection

func DeleteSiteConnection(t *testing.T, client *gophercloud.ServiceClient, siteConnectionID string)

DeleteSiteConnection will delete an IPSec site connection with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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