* v3 model generation * v3 model generation * comms * fixes after master merge * missing reader close * use constants defined for types --------- Co-authored-by: bui <thibault@crowdsec.net>
29 lines
608 B
Go
29 lines
608 B
Go
package types
|
|
|
|
const ApiKeyAuthType = "api-key"
|
|
const TlsAuthType = "tls"
|
|
const PasswordAuthType = "password"
|
|
|
|
const PAPIBaseURL = "https://papi.api.crowdsec.net/v1/decisions/stream/poll"
|
|
const CAPIBaseURL = "https://api.crowdsec.net/"
|
|
|
|
const CscliOrigin = "cscli"
|
|
const CrowdSecOrigin = "crowdsec"
|
|
const ConsoleOrigin = "console"
|
|
const CscliImportOrigin = "cscli-import"
|
|
const ListOrigin = "lists"
|
|
const CAPIOrigin = "CAPI"
|
|
|
|
const DecisionTypeBan = "ban"
|
|
|
|
func GetOrigins() []string {
|
|
return []string{
|
|
CscliOrigin,
|
|
CrowdSecOrigin,
|
|
ConsoleOrigin,
|
|
CscliImportOrigin,
|
|
ListOrigin,
|
|
CAPIOrigin,
|
|
}
|
|
}
|