firewall

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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