Documentation
¶
Index ¶
- func CheckCPU(cores int) error
- func CheckDistro(distro string) error
- func CheckErr(e error)
- func CheckMem(size uint64) error
- func ConfigureFirewall(mode string, c Config) error
- func GenerateFromTemplate(data interface{}, t string, cfile string) error
- func GenerateSecret() string
- func GetIfaceIP(iface string) (string, error)
- func GetMainIP() (string, error)
- func GetMainIface(mode string) (string, error)
- func GetMyPath() (string, error)
- func InitDocker(mode string, c Config, master bool, tag string, lite bool) error
- func InstallDocker(mode string) error
- func InstallMaster(mode, datadir, pass, tag string, lite bool) error
- func InstallOpenVPNClient(mode, host string) error
- func InstallOpenVPNMaster(mode string) error
- func InstallProbe(mode, datadir, pass, host, tag string, lite bool) error
- func InstallSuricata(mode string, iface string) error
- func MakeDir(mode os.FileMode, arg ...string) string
- func ReadYAML(url string, result interface{}) error
- func Restart(mode string)
- func RunCmd(mode, command string, arg ...string) error
- func RunEnvCmd(mode string, env []string, command string, arg ...string) error
- func Uninstall(mode string) error
- func WriteToFile(fileName string, body string) error
- func WriteYAML(url string, data interface{}) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDistro ¶
func ConfigureFirewall ¶
func GenerateFromTemplate ¶
func GenerateSecret ¶
func GenerateSecret() string
func GetIfaceIP ¶
func GetMainIface ¶
func InstallDocker ¶
func InstallMaster ¶
func InstallOpenVPNClient ¶
func InstallOpenVPNMaster ¶
func InstallProbe ¶
func InstallSuricata ¶
func WriteToFile ¶
Types ¶
type Config ¶
type Config struct { ServerType string Lite bool ServerName string DBHost string DBPass string LogstashPipeline string ESMem uint64 LSMem uint64 Updates uint32 ESData string ESBackups string Cert string Datasources string ScannerIface string ScannerIP string Correlation string Rules string Tag string Kind string Last int64 }
Click to show internal directories.
Click to hide internal directories.