MCPcopy
hub / github.com/crowdsecurity/crowdsec / LoadBuckets

Function LoadBuckets

cmd/crowdsec/main.go:51–64  ·  view source on GitHub ↗
(cConfig *csconfig.Config, hub *cwhub.Hub)

Source from the content-addressed store, hash-verified

49)
50
51func LoadBuckets(cConfig *csconfig.Config, hub *cwhub.Hub) error {
52 var err error
53
54 scenarios := hub.GetInstalledByType(cwhub.SCENARIOS, false)
55
56 log.Infof("Loading %d scenario files", len(scenarios))
57
58 holders, outEvents, err = leakybucket.LoadBuckets(cConfig.Crowdsec, hub, scenarios, flags.OrderEvent)
59 if err != nil {
60 return err
61 }
62
63 return nil
64}
65
66func LoadAcquisition(ctx context.Context, cConfig *csconfig.Config, hub *cwhub.Hub) ([]acquisitionTypes.DataSource, error) {
67 var datasources []acquisitionTypes.DataSource

Callers 1

initCrowdsecFunction · 0.70

Calls 2

LoadBucketsFunction · 0.92
GetInstalledByTypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…