Documentation
¶
Index ¶
- Variables
- func Agent(c *csconfig.Config) error
- func CAPI(c *csconfig.Config) error
- func CAPIRegistered(c *csconfig.Config) error
- func DB(c *csconfig.Config) error
- func DBClient(ctx context.Context, dbcfg *csconfig.DatabaseCfg) (*database.Client, error)
- func Hub(c *csconfig.Config, logger *logrus.Logger) (*cwhub.Hub, error)
- func HubBranch(ctx context.Context, cfg *csconfig.Config) (string, error)
- func HubDownloader(ctx context.Context, c *csconfig.Config) (*cwhub.Downloader, error)
- func HubURLTemplate(cfg *csconfig.Config) string
- func LAPI(c *csconfig.Config) error
- func LAPINoOnlineCreds(c *csconfig.Config) error
- func PAPI(c *csconfig.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAgentDisabled = errors.New("log processor is disabled -- this command cannot run on a LAPI-only instance")
Functions ¶
func CAPIRegistered ¶
func Hub ¶ added in v1.5.5
Hub initializes the hub. If a remote configuration is provided, it can be used to download the index and items. If no remote parameter is provided, the hub can only be used for local operations.
func HubBranch ¶ added in v1.6.0
HubBranch sets the branch (in cscli config) and returns its value It can be "master", or the branch corresponding to the current crowdsec version, or the value overridden in config/flag
func HubDownloader ¶ added in v1.6.5
func HubURLTemplate ¶ added in v1.6.1
func LAPINoOnlineCreds ¶ added in v1.6.10
LAPINoOnlineCreds is a variant of LAPI that does not attempt to load and use capi credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.