Documentation ¶
Index ¶
- type RuleService
- func (rs *RuleService) BatchCreateOrUpdateRule(rules []*domain.Rule) error
- func (rs *RuleService) BatchDeleteRule(policy string, uniqueIds []string) error
- func (rs *RuleService) BatchDeleteRuleByPolicy(policy string) error
- func (rs *RuleService) CreateOrUpdateRule(rule *domain.Rule) error
- func (rs *RuleService) DeleteRule(policy, uniqueId string) error
- func (rs *RuleService) ListRules(policy string, uniqueIds []string) ([]domain.Rule, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleService ¶
type RuleService struct {
KubeClient *client.KubeClient
}
func (*RuleService) BatchCreateOrUpdateRule ¶ added in v1.1.3
func (rs *RuleService) BatchCreateOrUpdateRule(rules []*domain.Rule) error
func (*RuleService) BatchDeleteRule ¶
func (rs *RuleService) BatchDeleteRule(policy string, uniqueIds []string) error
func (*RuleService) BatchDeleteRuleByPolicy ¶ added in v1.1.3
func (rs *RuleService) BatchDeleteRuleByPolicy(policy string) error
func (*RuleService) CreateOrUpdateRule ¶
func (rs *RuleService) CreateOrUpdateRule(rule *domain.Rule) error
func (*RuleService) DeleteRule ¶
func (rs *RuleService) DeleteRule(policy, uniqueId string) error
Click to show internal directories.
Click to hide internal directories.