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

# Functions

NewHub returns a new Hub instance with local and (optionally) remote configuration.
SafePath returns a joined path and ensures that it does not escape the base directory.

# Constants

# Variables

A sentinel to skip regular files because "nil, nil" is ambiguous.
HubClient is the HTTP client used to communicate with the CrowdSec Hub.
The order is important, as it is used to range over sub-items in collections.

# Structs

Downloader is used to retrieve index and items from a remote hub, with cache control.
Hub is the main structure for the package.
Item is created from an index file and enriched with local info.
ItemState is used to keep the local state (i.e.
ItemVersion is used to detect the version of a given item by comparing the hash of each version to the local file.

# Interfaces

ContentProvider retrieves and writes the YAML files with the item content.
IndexProvider retrieves and writes .index.json.

# Type aliases

no need to import the lib package to use this.