config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFlags

func ParseFlags() (string, bool, bool, error)

Types

type Config

type Config struct {
	SchemaVersion string `yaml:"schemaVersion"`
	Defaults      struct {
		ArchiveDirectory       string   `yaml:"archiveDirectory"`
		CheckRevocation        bool     `yaml:"checkRevocation"`
		CopyOnDeleteExtensions string   `yaml:"copyOnDeleteExtensions"`
		CopyOnDeletePE         bool     `yaml:"copyOnDeletePE"`
		CopyOnDeleteProcesses  string   `yaml:"copyOnDeleteProcesses"`
		CopyOnDeleteSIDs       string   `yaml:"copyOnDeleteSIDs"`
		DNSLookup              bool     `yaml:"dnsLookup"`
		DriverName             string   `yaml:"driverName"`
		HashAlgorithms         []string `yaml:"hashAlgorithms"`
	} `yaml:"defaults"`
	OutFilename     string        `yaml:"outFilename"`
	EventFilter     []EventFilter `yaml:"eventFilter"`
	ModulesBasePath string        `yaml:"modulesBasePath"`
	Modules         []string      `yaml:"modules"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type EventFilter added in v0.2.0

type EventFilter struct {
	EventName string `yaml:"eventName"`
	Include   bool   `yaml:"include"`
	Exclude   bool   `yaml:"exclude"`
}

Jump to

Keyboard shortcuts

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