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

Function _lapi

cmd/crowdsec-cli/core/require/require.go:30–40  ·  view source on GitHub ↗
(c *csconfig.Config, skipOnlineCreds bool)

Source from the content-addressed store, hash-verified

28}
29
30func _lapi(c *csconfig.Config, skipOnlineCreds bool) error {
31 if err := c.LoadAPIServer(true, skipOnlineCreds); err != nil {
32 return fmt.Errorf("failed to load Local API: %w", err)
33 }
34
35 if c.DisableAPI {
36 return errors.New("local API is disabled -- this command must be run on the local API machine")
37 }
38
39 return nil
40}
41
42func LAPI(c *csconfig.Config) error {
43 return _lapi(c, false)

Callers 2

LAPIFunction · 0.85
LAPINoOnlineCredsFunction · 0.85

Calls 1

LoadAPIServerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…