Documentation ¶
Index ¶
- Variables
- func NewClassicalStrategy(...) *classicalStrategy
- func NewDomainStrategy() *domainStrategy
- func NewIPCidrStrategy() *ipcidrStrategy
- func NewRuleSetProvider(name string, behavior P.RuleBehavior, format P.RuleFormat, ...) P.RuleProvider
- func ParseRuleProvider(name string, mapping map[string]interface{}, ...) (P.RuleProvider, error)
- func RuleProviders() map[string]P.RuleProvider
- func SetRuleProvider(ruleProvider P.RuleProvider)
- type RulePayload
- type RuleSet
- type RuleSetProvider
- func (rp RuleSetProvider) AsRule(adaptor string) C.Rule
- func (rp RuleSetProvider) Behavior() P.RuleBehavior
- func (rp RuleSetProvider) Initial() error
- func (rp RuleSetProvider) MarshalJSON() ([]byte, error)
- func (rp RuleSetProvider) Match(metadata *C.Metadata) bool
- func (rp RuleSetProvider) ShouldFindProcess() bool
- func (rp RuleSetProvider) ShouldResolveIP() bool
- func (rp RuleSetProvider) Type() P.ProviderType
- func (rp RuleSetProvider) Update() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPayload = errors.New("file must have a `payload` field")
Functions ¶
func NewClassicalStrategy ¶
func NewDomainStrategy ¶
func NewDomainStrategy() *domainStrategy
func NewIPCidrStrategy ¶
func NewIPCidrStrategy() *ipcidrStrategy
func NewRuleSetProvider ¶
func ParseRuleProvider ¶
func RuleProviders ¶
func RuleProviders() map[string]P.RuleProvider
func SetRuleProvider ¶
func SetRuleProvider(ruleProvider P.RuleProvider)
Types ¶
type RulePayload ¶
type RuleSet ¶
func NewRuleSet ¶
func (*RuleSet) ShouldFindProcess ¶
func (*RuleSet) ShouldResolveIP ¶
type RuleSetProvider ¶
type RuleSetProvider struct {
// contains filtered or unexported fields
}
func (RuleSetProvider) Behavior ¶
func (rp RuleSetProvider) Behavior() P.RuleBehavior
func (RuleSetProvider) MarshalJSON ¶
func (RuleSetProvider) ShouldFindProcess ¶
func (rp RuleSetProvider) ShouldFindProcess() bool
func (RuleSetProvider) ShouldResolveIP ¶
func (rp RuleSetProvider) ShouldResolveIP() bool
func (RuleSetProvider) Type ¶
func (rp RuleSetProvider) Type() P.ProviderType
Click to show internal directories.
Click to hide internal directories.