firewall

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 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

View Source
const APIPathCloudFirewallProfile = "/cloud/firewall_profile"
View Source
const APIPathCloudFirewallProfileRules = "/cloud/firewall_profile/rules"

Variables

This section is empty.

Functions

func AddPolicyRuleFailErrMocked

func AddPolicyRuleFailErrMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule

AddPolicyRuleFailErrMocked test mocked function

func AddPolicyRuleFailJSONMocked

func AddPolicyRuleFailJSONMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule

AddPolicyRuleFailJSONMocked test mocked function

func AddPolicyRuleFailStatusMocked

func AddPolicyRuleFailStatusMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule

AddPolicyRuleFailStatusMocked test mocked function

func AddPolicyRuleMocked

func AddPolicyRuleMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule

AddPolicyRuleMocked test mocked function

func GetPolicyFailErrMocked

func GetPolicyFailErrMocked(t *testing.T, policyIn *types.Policy) *types.Policy

GetPolicyFailErrMocked test mocked function

func GetPolicyFailJSONMocked

func GetPolicyFailJSONMocked(t *testing.T, policyIn *types.Policy) *types.Policy

GetPolicyFailJSONMocked test mocked function

func GetPolicyFailStatusMocked

func GetPolicyFailStatusMocked(t *testing.T, policyIn *types.Policy) *types.Policy

GetPolicyFailStatusMocked test mocked function

func GetPolicyMocked

func GetPolicyMocked(t *testing.T, policyIn *types.Policy) *types.Policy

GetPolicyMocked test mocked function

func UpdatePolicyFailErrMocked

func UpdatePolicyFailErrMocked(t *testing.T, policyIn *types.Policy) *types.Policy

UpdatePolicyFailErrMocked test mocked function

func UpdatePolicyFailJSONMocked

func UpdatePolicyFailJSONMocked(t *testing.T, policyIn *types.Policy) *types.Policy

UpdatePolicyFailJSONMocked test mocked function

func UpdatePolicyFailStatusMocked

func UpdatePolicyFailStatusMocked(t *testing.T, policyIn *types.Policy) *types.Policy

UpdatePolicyFailStatusMocked test mocked function

func UpdatePolicyMocked

func UpdatePolicyMocked(t *testing.T, policyIn *types.Policy) *types.Policy

UpdatePolicyMocked test mocked function

Types

type FirewallService

type FirewallService struct {
	// contains filtered or unexported fields
}

FirewallService manages firewall operations

func NewFirewallService

func NewFirewallService(concertoService utils.ConcertoService) (*FirewallService, error)

NewFirewallService returns a Concerto firewall service

func (*FirewallService) AddPolicyRule

func (fs *FirewallService) AddPolicyRule(ruleParams *map[string]interface{}) (policyRule *types.PolicyRule, err error)

AddPolicyRule adds a new firewall policy rule

func (*FirewallService) GetPolicy

func (fs *FirewallService) GetPolicy() (policy *types.Policy, err error)

GetPolicy returns firewall policy

func (*FirewallService) UpdatePolicy

func (fs *FirewallService) UpdatePolicy(policyParams *map[string]interface{}) (policy *types.Policy, err error)

UpdatePolicy update firewall policy

Jump to

Keyboard shortcuts

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