csconfig

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 9 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrowdSec

type CrowdSec struct {
	WorkingFolder   string    `yaml:"working_dir,omitempty"`
	DataFolder      string    `yaml:"data_dir,omitempty"`
	ConfigFolder    string    `yaml:"config_dir,omitempty"`
	AcquisitionFile string    `yaml:"acquis_path,omitempty"`
	SingleFile      string    //for forensic mode
	SingleFileLabel string    //for forensic mode
	PIDFolder       string    `yaml:"pid_dir,omitempty"`
	LogFolder       string    `yaml:"log_dir,omitempty"`
	LogMode         string    `yaml:"log_mode,omitempty"`    //like file, syslog or stdout ?
	LogLevel        log.Level `yaml:"log_level,omitempty"`   //trace,debug,info,warning,error
	Daemonize       bool      `yaml:"daemon,omitempty"`      //true -> go background
	Profiling       bool      `yaml:"profiling,omitempty"`   //true -> enable runtime profiling
	SQLiteFile      string    `yaml:"sqlite_path,omitempty"` //path to sqlite output
	APIMode         bool      `yaml:"apimode,omitempty"`     //true -> enable api push
	CsCliFolder     string    `yaml:"cscli_dir"`             //cscli folder
	NbParsers       int       `yaml:"parser_routines"`       //the number of go routines to start for parsing
	Linter          bool
	Prometheus      bool
	HTTPListen      string `yaml:"http_listen,omitempty"`
	RestoreMode     string
	DumpBuckets     bool
	OutputConfig    *outputs.OutputFactory `yaml:"plugin"`
}

CrowdSec is the structure of the crowdsec configuration

func NewCrowdSecConfig

func NewCrowdSecConfig() *CrowdSec

NewCrowdSecConfig create a new crowdsec configuration with default configuration

func (*CrowdSec) GetCliConfig

func (c *CrowdSec) GetCliConfig(configFile *string) error

func (*CrowdSec) GetOPT

func (c *CrowdSec) GetOPT() error

GetOPT return flags parsed from command line

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL