Documentation
¶
Overview ¶
Package fake provides an in-process scan engine for tests. It reports the EICAR test string and nothing else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
Signatures string
Scans atomic.Int64
// Err, if set, is returned by every scan.
Err error
// MaxSize, if set, rejects larger streams like clamd's StreamMaxLength.
MaxSize int
// Hold, if set, makes scans of streams containing it wait until Release
// is closed, like a long scan.
Hold []byte
Release chan struct{}
// contains filtered or unexported fields
}
Engine detects EICAR. Scans counts the streams scanned.
func (*Engine) SetMaxSize ¶
SetMaxSize changes MaxSize, as after a change of clamd's limits.
func (*Engine) SetSignatures ¶
SetSignatures changes the signature version, as after a database update.
Click to show internal directories.
Click to hide internal directories.