Documentation ¶
Index ¶
- func CreateExternalNetwork(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)
- func CreatePortWithSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, ...) (*ports.Port, error)
- func CreateSecurityGroup(t *testing.T, client *gophercloud.ServiceClient) (*groups.SecGroup, error)
- func CreateSecurityGroupRule(t *testing.T, client *gophercloud.ServiceClient, secGroupID string) (*rules.SecGroupRule, error)
- func DeleteSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, secGroupID string)
- func DeleteSecurityGroupRule(t *testing.T, client *gophercloud.ServiceClient, ruleID string)
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.