Documentation
¶
Index ¶
- Constants
- func Addr2Ints(anyIP string) (int, int64, int64, int64, int64, error)
- func GetAlertKinds() []string
- func GetOrigins() []string
- func IP2Ints(pip net.IP) (int, int64, int64, error)
- func LastAddress(n net.IPNet) net.IP
- func NormalizeScope(scope string) string
- func Range2Ints(network net.IPNet) (int, int64, int64, int64, int64, error)
- type AlertKind
Constants ¶
View Source
const ( ApiKeyAuthType = "api-key" TlsAuthType = "tls" PasswordAuthType = "password" )
View Source
const ( CscliOrigin = "cscli" CrowdSecOrigin = "crowdsec" ConsoleOrigin = "console" CscliImportOrigin = "cscli-import" ListOrigin = "lists" CAPIOrigin = "CAPI" CommunityBlocklistPullSourceScope = "crowdsecurity/community-blocklist" RemediationSyncOrigin = "remediation_sync" )
View Source
const ( Undefined = "" Ip = "Ip" Range = "Range" Filter = "Filter" Country = "Country" AS = "AS" )
Move in leakybuckets
View Source
const DecisionTypeBan = "ban"
Variables ¶
This section is empty.
Functions ¶
func GetAlertKinds ¶
func GetAlertKinds() []string
func GetOrigins ¶ added in v1.5.0
func GetOrigins() []string
func LastAddress ¶
LastAddress returns the last address of a network
func NormalizeScope ¶ added in v1.6.3
Types ¶
type AlertKind ¶
type AlertKind string
const ( CrowdsecAlertKind AlertKind = "crowdsec" // for alerts created from logs WAFAlertKind AlertKind = "waf" // for alerts generated by the WAF BotChallengeAlertKind AlertKind = "bot-challenge" // subset of WAF alerts, if client failed the challenge CAPIAlertKind AlertKind = "capi" // Alert created from a CAPI pull PAPIAlertKind AlertKind = "papi" // Alert created from a PAPI order CscliAlertKind AlertKind = "cscli" // Alert created from a cscli command )
Click to show internal directories.
Click to hide internal directories.