require

package
v1.5.6-rc12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CAPI

func CAPI(c *csconfig.Config) error

func CAPIRegistered

func CAPIRegistered(c *csconfig.Config) error

func DB

func DB(c *csconfig.Config) error

func Hub added in v1.5.5

func Hub(c *csconfig.Config, remote *cwhub.RemoteHubCfg, logger *logrus.Logger) (*cwhub.Hub, error)

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

func HubBranch(cfg *csconfig.Config) string

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 LAPI

func LAPI(c *csconfig.Config) error

func Notifications

func Notifications(c *csconfig.Config) error

func PAPI

func PAPI(c *csconfig.Config) error

func RemoteHub added in v1.6.0

func RemoteHub(c *csconfig.Config) *cwhub.RemoteHubCfg

RemoteHub returns the configuration required to download hub index and items: url, branch, etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL