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

Method dumpProfiles

cmd/crowdsec-cli/clisupport/support.go:402–407  ·  view source on GitHub ↗
(zw *zip.Writer)

Source from the content-addressed store, hash-verified

400}
401
402func (cli *cliSupport) dumpProfiles(zw *zip.Writer) {
403 fmt.Fprintln(os.Stdout, "Collecting crowdsec profile")
404
405 cfg := cli.cfg()
406 cli.writeFileToZip(zw, SUPPORT_CROWDSEC_PROFILE_PATH, cfg.API.Server.ProfilesPath)
407}
408
409func (cli *cliSupport) dumpAcquisitionConfig(zw *zip.Writer) {
410 fmt.Fprintln(os.Stdout, "Collecting acquisition config")

Callers 1

dumpMethod · 0.95

Calls 2

writeFileToZipMethod · 0.95
cfgMethod · 0.80

Tested by

no test coverage detected