extensions

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExternalNetwork

func CreateExternalNetwork(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)

CreateExternalNetwork will create an external network. An error will be returned if the creation failed.

func CreatePortWithSecurityGroup

func CreatePortWithSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID, secGroupID string) (*ports.Port, error)

CreatePortWithSecurityGroup will create a port with a security group attached. An error will be returned if the port could not be created.

func CreateSecurityGroup

func CreateSecurityGroup(t *testing.T, client *gophercloud.ServiceClient) (*groups.SecGroup, error)

CreateSecurityGroup will create a security group with a random name. An error will be returned if one was failed to be created.

func CreateSecurityGroupRule

func CreateSecurityGroupRule(t *testing.T, client *gophercloud.ServiceClient, secGroupID string) (*rules.SecGroupRule, error)

CreateSecurityGroupRule will create a security group rule with a random name and random port between 80 and 99. An error will be returned if one was failed to be created.

func DeleteSecurityGroup

func DeleteSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, secGroupID string)

DeleteSecurityGroup will delete a security group of a specified ID. A fatal error will occur if the deletion failed. This works best as a deferred function

func DeleteSecurityGroupRule

func DeleteSecurityGroupRule(t *testing.T, client *gophercloud.ServiceClient, ruleID string)

DeleteSecurityGroupRule will delete a security group rule of a specified ID. A fatal error will occur if the deletion failed. This works best as a deferred function

Types

This section is empty.

Directories

Path Synopsis
agents acceptance tests
agents acceptance tests
qos

Jump to

Keyboard shortcuts

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