Documentation
¶
Index ¶
- Variables
- func LoadSuricataToDatabase(raw string) error
- func ParseRuleFromHTTPRequestRawJSON(content string) []*rule.Storage
- func ParseRuleFromRawSuricataRules(content string) []*rule.Storage
- func YieldRulesByKeywords(keywords string, protos ...string) chan *rule.Storage
- func YieldRulesByKeywordsWithType(ruleType string, keywords string, protos ...string) chan *rule.Storage
- func YieldSuricataRulesByKeywords(keywords string, protos ...string) chan *rule.Storage
- type ChaosMaker
- type TrafficRule
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChaosMakerExports = map[string]any{ "SuricataMatcher": match.New, "ParseSuricata": surirule.Parse, "YieldRules": yieldRules, "YieldRulesByKeyword": YieldRulesByKeywords, "YieldSuricataRulesByKeywords": YieldRulesByKeywords, "LoadSuricataToDatabase": LoadSuricataToDatabase, "TrafficGenerator": NewChaosMaker, } )
Functions ¶
func LoadSuricataToDatabase ¶
func YieldRulesByKeywords ¶
func YieldRulesByKeywordsWithType ¶ added in v1.2.7
Types ¶
type ChaosMaker ¶
type ChaosMaker struct { LocalIPAddress string ChaosRules []*rule.Storage // contains filtered or unexported fields }
func NewChaosMaker ¶
func NewChaosMaker() *ChaosMaker
func NewChaosMakerWithRules ¶
func NewChaosMakerWithRules(rules []*rule.Storage) *ChaosMaker
func (*ChaosMaker) ApplyAll ¶
func (c *ChaosMaker) ApplyAll() error
func (*ChaosMaker) FeedRule ¶
func (c *ChaosMaker) FeedRule(a ...*rule.Storage)
func (*ChaosMaker) Generate ¶
func (c *ChaosMaker) Generate() chan []byte
func (*ChaosMaker) GenerateWithRule ¶ added in v1.2.7
func (c *ChaosMaker) GenerateWithRule() chan *TrafficRule
func (*ChaosMaker) SetContext ¶ added in v1.2.7
func (c *ChaosMaker) SetContext(ctx context.Context)
type TrafficRule ¶ added in v1.2.7
Source Files
¶
Click to show internal directories.
Click to hide internal directories.