cmd

package
v0.0.0-...-5c50890 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClamSocketLocation = os.Getenv("CLAM_SOCKET")

DefaultClamSocketLocation is the default location of the clamd socket on the host

Functions

This section is empty.

Types

type ManagedScannerOptions

type ManagedScannerOptions struct {
	// ScanDir is the name of the directory to be scanned.
	ScanDir string
	// ScanResultsDir is the directory that will contain the results of the scan
	ScanResultsDir string
	// ClamSocket is the location of clamav socket file
	ClamSocket string
	// PostResultURL represents an URL where the image-inspector should post the results of
	// the scan.
	PostResultURL string
	// OutFile is the name of the file on disk to write
	OutFile string
}

ManagedScannerOptions is the main scanner implementation and holds the configuration for a clam scanner.

func NewDefaultManagedScannerOptions

func NewDefaultManagedScannerOptions() *ManagedScannerOptions

NewDefaultManagedScannerOptions provides a new ManagedScannerOptions with default values.

func (*ManagedScannerOptions) Validate

func (i *ManagedScannerOptions) Validate() error

Validate performs validation on the field settings.

type MultiStringVar

type MultiStringVar struct {
	Values []string
}

MultiStringVar is implementing flag.Value

func (*MultiStringVar) Set

func (sv *MultiStringVar) Set(s string) error

Set appends values to a set

func (*MultiStringVar) String

func (sv *MultiStringVar) String() string

Jump to

Keyboard shortcuts

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