fwaas

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 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 CreateFirewall

func CreateFirewall(t *testing.T, client *gophercloud.ServiceClient, policyID string) (*firewalls.Firewall, error)

CreateFirewall will create a Firewall with a random name and a specified policy ID. An error will be returned if the firewall could not be created.

func CreateFirewallOnRouter

func CreateFirewallOnRouter(t *testing.T, client *gophercloud.ServiceClient, policyID string, routerID string) (*firewalls.Firewall, error)

CreateFirewallOnRouter will create a Firewall with a random name and a specified policy ID attached to a specified Router. An error will be returned if the firewall 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 DeleteFirewall

func DeleteFirewall(t *testing.T, client *gophercloud.ServiceClient, firewallID string)

DeleteFirewall will delete a firewall 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 WaitForFirewallState

func WaitForFirewallState(client *gophercloud.ServiceClient, firewallID, status string) error

WaitForFirewallState will wait until a firewall reaches a given state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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