github.com/crowdsecurity/crowdsec@v1.6.1/pkg/fflag/crowdsec.go (about) 1 package fflag 2 3 var Crowdsec = FeatureRegister{EnvPrefix: "CROWDSEC_FEATURE_"} 4 5 var CscliSetup = &Feature{Name: "cscli_setup", Description: "Enable cscli setup command (service detection)"} 6 var DisableHttpRetryBackoff = &Feature{Name: "disable_http_retry_backoff", Description: "Disable http retry backoff"} 7 var ChunkedDecisionsStream = &Feature{Name: "chunked_decisions_stream", Description: "Enable chunked decisions stream"} 8 var PapiClient = &Feature{Name: "papi_client", Description: "Enable Polling API client", State: DeprecatedState} 9 var Re2GrokSupport = &Feature{Name: "re2_grok_support", Description: "Enable RE2 support for GROK patterns"} 10 var Re2RegexpInfileSupport = &Feature{Name: "re2_regexp_in_file_support", Description: "Enable RE2 support for RegexpInFile expr helper"} 11 12 func RegisterAllFeatures() error { 13 err := Crowdsec.RegisterFeature(CscliSetup) 14 if err != nil { 15 return err 16 } 17 18 err = Crowdsec.RegisterFeature(DisableHttpRetryBackoff) 19 if err != nil { 20 return err 21 } 22 23 err = Crowdsec.RegisterFeature(ChunkedDecisionsStream) 24 if err != nil { 25 return err 26 } 27 28 err = Crowdsec.RegisterFeature(PapiClient) 29 if err != nil { 30 return err 31 } 32 33 err = Crowdsec.RegisterFeature(Re2GrokSupport) 34 if err != nil { 35 return err 36 } 37 38 err = Crowdsec.RegisterFeature(Re2RegexpInfileSupport) 39 if err != nil { 40 return err 41 } 42 43 return nil 44 }