Documentation ¶
Index ¶
- func CreateFirewallGroup(t *testing.T, client *gophercloud.ServiceClient, policyID string) (*firewall_groups.FirewallGroup, error)
- func CreateFirewallGroupOnPort(t *testing.T, client *gophercloud.ServiceClient, policyID string, ...) (*firewall_groups.FirewallGroup, 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 DeleteFirewallGroup(t *testing.T, client *gophercloud.ServiceClient, firewallID string)
- func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, policyID string)
- func DeleteRule(t *testing.T, client *gophercloud.ServiceClient, ruleID string)
- func WaitForFirewallGroupState(client *gophercloud.ServiceClient, firewallID, status string, secs int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFirewallGroup ¶
func CreateFirewallGroup(t *testing.T, client *gophercloud.ServiceClient, policyID string) (*firewall_groups.FirewallGroup, error)
CreateFirewallGroup will create a Firewall group with a random name and a specified policy ID. An error will be returned if the firewall could not be created.
func CreateFirewallGroupOnPort ¶
func CreateFirewallGroupOnPort(t *testing.T, client *gophercloud.ServiceClient, policyID string, portID string) (*firewall_groups.FirewallGroup, error)
CreateFirewallGroupOnPort will create a Firewall group with a random name and a specified policy ID attached to a specified Port. An error will be returned if the firewall group could not be created.
func CreatePolicy ¶
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 DeleteFirewallGroup ¶
func DeleteFirewallGroup(t *testing.T, client *gophercloud.ServiceClient, firewallID string)
DeleteFirewallGroup will delete a firewall 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 ¶
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 WaitForFirewallGroupState ¶
func WaitForFirewallGroupState(client *gophercloud.ServiceClient, firewallID, status string, secs int) error
WaitForFirewallGroupState will wait until a firewall reaches a given state.
Types ¶
This section is empty.