config

package
v0.0.0-...-791930b Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	JSONOutput  = "json"
	TableOutput = "table"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExcludedExtensions     []string `yaml:"exclude_extensions"`
	ExcludedPaths          []string `yaml:"exclude_paths"`
	ExcludedContainerPaths []string `yaml:"exclude_container_paths"`
}

func ParseConfig

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

type Options

type Options struct {
	Threads              *int
	DebugLevel           *string
	MaximumFileSize      *int64
	TempDirectory        *string
	Local                *string
	HostMountPath        *string
	ConfigPath           *string
	ImageName            *string
	MaxIOC               *uint
	ContainerID          *string
	ContainerNS          *string
	SocketPath           *string
	RulesPath            *string
	FailOnCompileWarning *bool
	WorkersPerScan       *int
	InactiveThreshold    *int
	OutFormat            *string
	ConsoleURL           *string
	ConsolePort          *int
	DeepfenceKey         *string
	FailOnCount          *int
	FailOnHighCount      *int
	FailOnMediumCount    *int
	FailOnLowCount       *int
	RulesListingURL      *string
	EnableUpdater        *bool
	Product              *string
	Version              *string
	License              *string
}

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions returns the default options for the YaraHunter without flag parsing

func ParseOptions

func ParseOptions() (*Options, error)

Jump to

Keyboard shortcuts

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