()
| 80 | } |
| 81 | |
| 82 | func (o *PatternsLoader) Setup() (err error) { |
| 83 | if err = o.PluginBase.Setup(); err != nil { |
| 84 | return |
| 85 | } |
| 86 | |
| 87 | if err = o.PopulateDB(); err != nil { |
| 88 | return |
| 89 | } |
| 90 | return |
| 91 | } |
| 92 | |
| 93 | // PopulateDB downloads patterns from the internet and populates the patterns folder |
| 94 | func (o *PatternsLoader) PopulateDB() (err error) { |
nothing calls this directly
no test coverage detected