MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / CAPI

Function CAPI

cmd/crowdsec-cli/core/require/require.go:51–57  ·  view source on GitHub ↗
(c *csconfig.Config)

Source from the content-addressed store, hash-verified

49}
50
51func CAPI(c *csconfig.Config) error {
52 if c.API.Server.OnlineClient == nil {
53 return fmt.Errorf("no configuration for Central API (CAPI) in '%s'", c.FilePath)
54 }
55
56 return nil
57}
58
59func PAPI(c *csconfig.Config) error {
60 if err := CAPI(c); err != nil {

Callers 5

newRegisterCmdMethod · 0.92
newStatusCmdMethod · 0.92
NewCommandMethod · 0.92
NewCommandMethod · 0.92
PAPIFunction · 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…