config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Paths         simpleStringSlice
	MaxFileSize   = fileSize(32 * 1024 * 1024)
	ReportTargets = simpleStringSlice([]string{"spyre.log"})
	Hostname      string
	HighPriority  bool
	YaraFiles     simpleStringSlice
	IocFiles      simpleStringSlice
)

Fs is the "filesystem" in which configuration and rules are found. This can be provided through a ZIP file appended to the binary.

Functions

func Init

func Init() error

func ReadIOCs added in v1.1.0

func ReadIOCs(iocFile string, iocs interface{}) error

ReadIOCs reads IOCs from iocFile into iocs. iocs is typically a struct with a single member, most likely string-based map or slice, which is tagged with the name of a subkey.

Example:

type iocs struct {
	EventObjects []keyIOC `json:"registry-keys"`
}

type keyIOC struct { ... }

Types

This section is empty.

Jump to

Keyboard shortcuts

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