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 SetTunnel(t P.Tunnel)
- type RulePayload
- type RuleSet
- func (rs *RuleSet) Adapter() string
- func (rs *RuleSet) Match(metadata *C.Metadata) (bool, string)
- func (rs *RuleSet) Payload() string
- func (rs *RuleSet) ProviderNames() []string
- func (rs *RuleSet) RuleType() C.RuleType
- func (rs *RuleSet) ShouldFindProcess() bool
- func (rs *RuleSet) ShouldResolveIP() bool
- type RuleSetProvider
- 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) Strategy() any
- 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 (i *ipcidrStrategy) ToIpCidr() *netipx.IPSet { return i.cidrSet.ToIPSet() }
func NewRuleSetProvider ¶
func ParseRuleProvider ¶
Types ¶
type RulePayload ¶
type RuleSet ¶
func NewRuleSet ¶
func (*RuleSet) ProviderNames ¶
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.