multiav

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrParseDetection is reported when parsing AV detection result from the
	// CLI failed.
	ErrParseDetection = errors.New("failed to parse detection name")
	// DefaultScanTimeout represents the maximum wait time for the scanning before
	// giving up.
	DefaultScanTimeout = 60 * time.Second
)

Functions

This section is empty.

Types

type Options added in v0.5.0

type Options struct {
	// Scan timeout.
	ScanTimeout time.Duration
}

Options represents the scan configuration options.

type Result

type Result struct {
	// Infected is true when the file has been detected as so by the antivirus.
	Infected bool `json:"infected"`
	// The detection name.
	Output string `json:"output"`
	// Out represent the std out from the av scanner during the cmd line scan.
	Out string `json:"-"`
}

Result represents detection results.

type Scanner

type Scanner struct{}

Scanner represents an empty struct that can be used to a method received.

Jump to

Keyboard shortcuts

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