package
1.6.8
Repository: https://github.com/crowdsecurity/crowdsec.git
Documentation: pkg.go.dev

# Functions

CreateInstallLink creates a symlink between the actual config file at hub.HubDir and hub.ConfigDir.
XXX: TODO: temporary for hubtests, but will have to go.
RemoveInstallLink removes the item's symlink between the installation directory and the local hub.
UniqueKey generates a unique string key for a Command based on its operation type, item type, and detail.

# Structs

ActionPlan orchestrates the sequence of operations (Commands) to manage CrowdSec hub items.
DataRefreshCommand updates the data files associated with the installed hub items.
The DataSet is a list of data sources required by an item (built from the data: section in the yaml).
DisableCommand uninstalls an item and its dependencies, ensuring that no sub-item is left in an inconsistent state.
DownloadCommand handles the downloading of hub items.
EnableCommand installs a hub item and its dependencies.
PurgeCommand removes the downloaded content of a hub item, effectively removing it from the local system.

# Interfaces

Command represents an operation that can be performed on a CrowdSec hub item.