Documentation
¶
Overview ¶
Package rule is to control the audit rule behaviors
Index ¶
- type Manager
- func (r *Manager) Detect(tag string, destination string, userKey string, srcIP string) (reject bool)
- func (r *Manager) GetDetectResult(tag string) (*[]api.DetectResult, error)
- func (r *Manager) UpdateExemptUsers(users []api.ExemptUser)
- func (r *Manager) UpdateRule(tag string, newRuleList []api.DetectRule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
InboundRule *sync.Map // Key: Tag, Value: []api.DetectRule
InboundDetectResult *sync.Map // key: Tag, Value: mapset.NewSet []api.DetectResult
// contains filtered or unexported fields
}
func (*Manager) GetDetectResult ¶
func (r *Manager) GetDetectResult(tag string) (*[]api.DetectResult, error)
func (*Manager) UpdateExemptUsers ¶ added in v1.1.2
func (r *Manager) UpdateExemptUsers(users []api.ExemptUser)
UpdateExemptUsers replaces the exempt user list
func (*Manager) UpdateRule ¶
func (r *Manager) UpdateRule(tag string, newRuleList []api.DetectRule) error
Click to show internal directories.
Click to hide internal directories.