Documentation ¶
Index ¶
- func AddPolicyRuleFailErrMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule
- func AddPolicyRuleFailJSONMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule
- func AddPolicyRuleFailStatusMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule
- func AddPolicyRuleMocked(t *testing.T, policyRuleIn *types.PolicyRule) *types.PolicyRule
- func GetPolicyFailErrMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func GetPolicyFailJSONMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func GetPolicyFailStatusMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func GetPolicyMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func UpdatePolicyFailErrMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func UpdatePolicyFailJSONMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func UpdatePolicyFailStatusMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- func UpdatePolicyMocked(t *testing.T, policyIn *types.Policy) *types.Policy
- type FirewallService
- func (fs *FirewallService) AddPolicyRule(ruleVector *map[string]interface{}) (policyRule *types.PolicyRule, err error)
- func (fs *FirewallService) GetPolicy() (policy *types.Policy, err error)
- func (fs *FirewallService) UpdatePolicy(policyVector *map[string]interface{}) (policy *types.Policy, err error)
Constants ¶
This section is empty.
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 ¶
GetPolicyFailErrMocked test mocked function
func GetPolicyFailJSONMocked ¶
GetPolicyFailJSONMocked test mocked function
func GetPolicyFailStatusMocked ¶
GetPolicyFailStatusMocked test mocked function
func GetPolicyMocked ¶
GetPolicyMocked test mocked function
func UpdatePolicyFailErrMocked ¶
UpdatePolicyFailErrMocked test mocked function
func UpdatePolicyFailJSONMocked ¶
UpdatePolicyFailJSONMocked test mocked function
func UpdatePolicyFailStatusMocked ¶
UpdatePolicyFailStatusMocked 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(ruleVector *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(policyVector *map[string]interface{}) (policy *types.Policy, err error)
UpdatePolicy update firewall policy