extensions

package
v0.0.0-...-f8ec1b3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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