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

Function formatConfigLocation

pkg/acquisition/acquisition.go:308–316  ·  view source on GitHub ↗
(acquisFile string, withPos bool, idx int)

Source from the content-addressed store, hash-verified

306}
307
308func formatConfigLocation(acquisFile string, withPos bool, idx int) string {
309 ret := acquisFile
310
311 if withPos {
312 ret += " (position " + strconv.Itoa(idx) + ")"
313 }
314
315 return ret
316}
317
318// sourcesFromFile reads and parses one acquisition file into DataSources.
319func sourcesFromFile(

Callers 1

sourcesFromFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…