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
Click to show internal directories.
Click to hide internal directories.