Documentation ¶
Index ¶
- func AddRule(t *testing.T, client *gophercloud.ServiceClient, policyID string, ...)
- func CreateGroup(t *testing.T, client *gophercloud.ServiceClient) (*groups.Group, error)
- func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient, ruleID string) (*policies.Policy, error)
- func CreateRule(t *testing.T, client *gophercloud.ServiceClient) (*rules.Rule, error)
- func DeleteGroup(t *testing.T, client *gophercloud.ServiceClient, groupId string)
- func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, policyID string)
- func DeleteRule(t *testing.T, client *gophercloud.ServiceClient, ruleID string)
- func RemoveRule(t *testing.T, client *gophercloud.ServiceClient, policyID string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRule ¶ added in v0.15.0
func AddRule(t *testing.T, client *gophercloud.ServiceClient, policyID string, ruleID string, beforeRuleID string)
AddRule will add a rule to to a policy.
func CreateGroup ¶ added in v0.14.0
func CreateGroup(t *testing.T, client *gophercloud.ServiceClient) (*groups.Group, error)
CreateGroup will create a Firewall Group. An error will be returned if the firewall group could not be created.
func CreatePolicy ¶ added in v0.15.0
func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient, ruleID string) (*policies.Policy, error)
CreatePolicy will create a Firewall Policy with a random name and given rule. An error will be returned if the rule could not be created.
func CreateRule ¶
func CreateRule(t *testing.T, client *gophercloud.ServiceClient) (*rules.Rule, error)
CreateRule will create a Firewall Rule with a random source address and source port, destination address and port. An error will be returned if the rule could not be created.
func DeleteGroup ¶ added in v0.14.0
func DeleteGroup(t *testing.T, client *gophercloud.ServiceClient, groupId string)
DeleteGroup will delete a 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 DeletePolicy ¶ added in v0.15.0
func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, policyID string)
DeletePolicy will delete a 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 DeleteRule ¶
func DeleteRule(t *testing.T, client *gophercloud.ServiceClient, ruleID string)
DeleteRule will delete a rule 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 RemoveRule ¶ added in v0.15.0
func RemoveRule(t *testing.T, client *gophercloud.ServiceClient, policyID string, ruleID string)
RemoveRule will remove a rule from the policy.
Types ¶
This section is empty.